C / conio.h / wherex
cgets, clreol, clrscr, cprintf, cputs, cscanf, delline, getch, getche, getpass, gettext, gettextinfo, gotoxy, highvideo, inport, insline, kbhit, lowvideo, movetext, normvideo, outport, putch, puttext, _setcursortype, textattr, textbackground, textcolor, textmode, ungetch, » wherex, wherey, window,
Funcion: wherex()
Sintaxis:
int wherex(void);

Descripcion: Obtiene la coordenada x de la posición del cursor actual (dentro de la ventana de texto en uso).


Ejemplo:
#include <conio.h>
 
int main() {
   clrscr();
   cprintf( "Ejemplo de \"wherex\" y \"wherey\"\r\n\r\n" ); 
   cprintf( "La posici&oacute;n del cursor es: (%d,%d)\r\n", wherex(), wherey() );
   cprintf( "Pulsa una tecla para continuar..." );
   getch();
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h