FreeBASIC  0.91.0
qb_inkey.c
Go to the documentation of this file.
1 /* QB compatible INKEY */
2 
3 #include "fb.h"
4 
5 /*:::::*/
7 {
8  FBSTRING *res = fb_Inkey();
9 
10  FB_LOCK();
11 
12  if( res && res->data
13  && ( FB_STRSIZE(res) == 2 )
14  && ( res->data[0] == FB_EXT_CHAR ) )
15  {
16  res->data[0] = 0;
17  }
18 
19  FB_UNLOCK();
20 
21  return res;
22 }