FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
strw_chr.c
Go to the documentation of this file.
1
/* chrw$ routine */
2
3
#include "
fb.h
"
4
5
FB_WCHAR
*
fb_WstrChr
(
int
args, ... )
6
{
7
FB_WCHAR
*dst, *s;
8
va_list ap;
9
unsigned
int
num;
10
int
i;
11
12
if
( args <= 0 )
13
return
NULL
;
14
15
/* alloc temp string */
16
va_start( ap, args );
17
18
dst =
fb_wstr_AllocTemp
( args );
19
if
( dst !=
NULL
)
20
{
21
/* convert */
22
s = dst;
23
for
( i = 0; i < args; i++ )
24
{
25
num = va_arg( ap,
unsigned
int
);
26
*s++ = num;
27
}
28
/* null-term */
29
*s = 0;
30
}
31
32
va_end( ap );
33
34
return
dst;
35
}
rtlib
strw_chr.c
Generated on Thu Jan 23 2014 19:40:13 for FreeBASIC by
1.8.4