You are here

Function wherey in C

Function wherey returns the current vertical cursor position.

Declaration: int wherey();

C program for wherey

#include <stdio.h>
#include <conio.h>

int main()
{
   int p;

   printf("Hello\n");

   p = wherey();

   printf("Vertical cursor position from where this text appears = %d", p);

   getch();
   return 0;
}