FreeBASIC  0.91.0
con_locate.c
Go to the documentation of this file.
1 /* locate function entry point, returns current position */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL int fb_Locate( int row, int col, int cursor, int start, int stop )
7 {
8  int new_pos;
9  int res = fb_LocateEx( row, col, cursor, &new_pos );
10  if( res!=FB_RTERROR_OK )
11  fb_LocateEx( 0, 0, cursor, &new_pos );
12  return new_pos;
13 }