src/gfxlib2/gfx_inkey.c
/* Caller is expected to hold FB_LOCK() */
Caller is expected to hold FB_LOCK()
Caller is expected to hold FB_LOCK ()
FBSTRING *fb_GfxInkey(void)
{
	FBSTRING *res;
	int ch;
	FB_GRAPHICS_LOCK( );
	if (__fb_gfx && (ch = get_key())) {
		res = fb_hMakeInkeyStr( ch );
	} else {
		res = &__fb_ctx.null_desc;
	}
	FB_GRAPHICS_UNLOCK( );
	return res;
}
FBSTRING * fb_GfxInkey ( void ) { FBSTRING * res ; int ch ; FB_GRAPHICS_LOCK ( ) ; if ( __fb_gfx && ( ch = get_key ( ) ) ) { res = fb_hMakeInkeyStr ( ch ) ; } else { res = & __fb_ctx . null_desc ; } FB_GRAPHICS_UNLOCK ( ) ; return res ; }
Caller is expected to hold FB_LOCK()
Caller is expected to hold FB_LOCK ()