Skip to content
Thomas Foster edited this page Apr 15, 2021 · 2 revisions

Function   Gives horizontal cursor position within window.

Syntaxint wherex(void);

Prototype in   conio.h

Return valuewherex returns an integer in the range 1 to 80.

See also gettextinfo, gotoxy, wherey

Remarks

wherex returns the x-coordinate of the current cursor position (within the current text window).

Example

cprintf("The cursor is at (%d,%d)", wherex(), wherey());

Header Files

Clone this wiki locally