FreeBASIC  0.91.0
io_printbuff_wstr.c
Go to the documentation of this file.
1 /* low-level print to console function */
2 
3 #include "../fb.h"
4 #include "fb_private_console.h"
5 
6 void fb_ConsolePrintBufferWstrEx( const FB_WCHAR *buffer, size_t len, int mask )
7 {
8  /* !!!FIXME!!! no support for unicode output */
9 
10  char *temp = alloca( len + 1 );
11 
12  if( len > 0 )
13  fb_wstr_ConvToA( temp, buffer, len );
14  else
15  *temp = '\0';
16 
17  fb_ConsolePrintBufferEx( temp, len, mask );
18 }
19 
20 void fb_ConsolePrintBufferWstr( const FB_WCHAR *buffer, int mask )
21 {
22  fb_ConsolePrintBufferWstrEx( buffer, fb_wstr_Len( buffer ), mask );
23 }