FreeBASIC  0.91.0
hook_readstr.c
Go to the documentation of this file.
1 /* input$|line input entrypoint, default to console mode */
2 
3 #include "fb.h"
4 
5 char *fb_ReadString( char *buffer, ssize_t len, FILE *f )
6 {
7  if( f != stdin )
8  return fgets( buffer, len, f );
9  else {
11  return __fb_ctx.hooks.readstrproc( buffer, len );
12  else
13  return fb_ConsoleReadStr( buffer, len );
14  }
15 }