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