FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
strw_convfrom_str.c
Go to the documentation of this file.
1
/* ascii to unicode string convertion function */
2
3
#include "
fb.h
"
4
5
FBCALL
FB_WCHAR
*
fb_StrToWstr
(
const
char
*src )
6
{
7
FB_WCHAR
*dst;
8
ssize_t chars;
9
10
if
( src ==
NULL
)
11
return
NULL
;
12
13
chars = strlen( src );
14
if
( chars == 0 )
15
return
NULL
;
16
17
dst =
fb_wstr_AllocTemp
( chars );
18
if
( dst ==
NULL
)
19
return
NULL
;
20
21
fb_wstr_ConvFromA
( dst, chars, src );
22
23
return
dst;
24
}
rtlib
strw_convfrom_str.c
Generated on Thu Jan 23 2014 19:40:13 for FreeBASIC by
1.8.4