wherey
Go Up to conio.h Index
Header File
conio.h
Category
Console I/O Routines
Prototype
int wherey(void);
Description
Gives vertical cursor position within window.
Note: Do not use this function in Win32 GUI applications.
wherey returns the y-coordinate of the current cursor position (within the current text window).
Return Value
wherey returns an integer in the range 1 to the number of rows in the current video mode.
Example
#include <conio.h> int main(void) { clrscr(); gotoxy(10,10); cprintf( "Current location is X: %d Y: %d\r\n", wherex(), wherey()); getch(); return 0; }
Portability
POSIX | Win32 | ANSI C | ANSI C++ |
---|---|---|---|
+ |