wherey
raw OCR
Gives vertical cursor position within window.
Defined in header <conio.h>
Syntax
#include <conio.h>
int wherey(void);
wherey returns the y-coordinate of the current cursor position
(within the current text window).
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ |
Return value
wherey returns an integer in the range 1 to 25, 43, or 50.
See also
Example
#include <conio.h>
int main (void)
{
clrscr 0;
gotoxy (10,10);
cprintf ("Current location is X: %d Y: %d\r\n", wherexO, wherey(
getchO ;
return 0;
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/conio.h/wherey/
· short form /3.1/wherey/