FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
strw_convto.c
Go to the documentation of this file.
1
/* strw$ routines for int, uint */
2
3
#include "
fb.h
"
4
5
FBCALL
FB_WCHAR
*
fb_IntToWstr
(
int
num )
6
{
7
FB_WCHAR
*dst;
8
9
/* alloc temp string */
10
dst =
fb_wstr_AllocTemp
(
sizeof
(
int
) * 3 );
11
if
( dst !=
NULL
)
12
{
13
/* convert */
14
FB_WSTR_FROM_INT
( dst, num );
15
}
16
17
return
dst;
18
}
19
20
FBCALL
FB_WCHAR
*
fb_UIntToWstr
(
unsigned
int
num )
21
{
22
FB_WCHAR
*dst;
23
24
/* alloc temp string */
25
dst =
fb_wstr_AllocTemp
(
sizeof
(
int
) * 3 );
26
if
( dst !=
NULL
)
27
{
28
/* convert */
29
FB_WSTR_FROM_UINT
( dst, num );
30
}
31
32
return
dst;
33
}
rtlib
strw_convto.c
Generated on Thu Jan 23 2014 19:40:13 for FreeBASIC by
1.8.4