FreeBASIC  0.91.0
hook_printstr.c
Go to the documentation of this file.
1 /* print string entrypoint, default to console mode */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL void fb_PrintBufferEx( const void *buffer, size_t len, int mask )
7 {
8  FB_LOCK();
9 
11  __fb_ctx.hooks.printbuffproc( buffer, len, mask );
12  else
13  fb_ConsolePrintBufferEx( buffer, len, mask );
14 
15  FB_UNLOCK();
16 
17 }
18 
19 /*:::::*/
20 FBCALL void fb_PrintBuffer( const char *buffer, int mask )
21 {
22 
23  return fb_PrintBufferEx( buffer, strlen( buffer ), mask );
24 
25 }