FreeBASIC  0.91.0
io_lpos.c
Go to the documentation of this file.
1 /* Returns the printers X position */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL int fb_LPos( int printer_index )
7 {
8  int cur;
9  char buffer[32];
10 
11  FB_LOCK();
12 
13  sprintf(buffer, "LPT%d:", (printer_index+1));
14  cur = fb_DevPrinterGetOffset( buffer );
15 
16  FB_UNLOCK();
17 
18  return cur;
19 }