FreeBASIC  0.91.0
file_put_wstr.c
Go to the documentation of this file.
1 /* put # function for wstrings */
2 
3 #include "fb.h"
4 
5 int fb_FilePutWstrEx( FB_FILE *handle, fb_off_t pos, FB_WCHAR *str, ssize_t len )
6 {
7  int res;
8 
9  /* perform call ... but only if there's data ... */
10  if( (str != NULL) && (len > 0) )
11  res = fb_FilePutDataEx( handle, pos, (void *)str, len, TRUE, TRUE, TRUE );
12  else
14 
15  return res;
16 }
17 
18 FBCALL int fb_FilePutWstr( int fnum, int pos, FB_WCHAR *str, ssize_t str_len )
19 {
20  return fb_FilePutWstrEx(FB_FILE_TO_HANDLE(fnum), pos, str, str_len);
21 }
22 
23 FBCALL int fb_FilePutWstrLarge( int fnum, long long pos, FB_WCHAR *str, ssize_t str_len )
24 {
25  return fb_FilePutWstrEx(FB_FILE_TO_HANDLE(fnum), pos, str, str_len);
26 }