-
Notifications
You must be signed in to change notification settings - Fork 0
wherex
Thomas Foster edited this page Apr 15, 2021
·
2 revisions
Function Gives horizontal cursor position within window.
Syntax int wherex(void);
Prototype in conio.h
Return value wherex returns an integer in the range 1 to 80.
See also gettextinfo, gotoxy, wherey
wherex returns the x-coordinate of the current cursor position (within the current text window).
cprintf("The cursor is at (%d,%d)", wherex(), wherey());