FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
str_misc.c
Go to the documentation of this file.
1
/* misc string routines */
2
3
#include "
fb.h
"
4
5
FBCALL
FBSTRING
*
fb_SPACE
( ssize_t len )
6
{
7
FBSTRING
*dst;
8
9
if
( len > 0 )
10
{
11
/* alloc temp string */
12
dst =
fb_hStrAllocTemp
(
NULL
, len );
13
if
( dst !=
NULL
)
14
{
15
/* fill it */
16
memset( dst->
data
, 32, len );
17
18
/* null char */
19
dst->
data
[len] =
'\0'
;
20
}
21
else
22
dst = &
__fb_ctx
.
null_desc
;
23
}
24
else
25
dst = &
__fb_ctx
.
null_desc
;
26
27
return
dst;
28
}
rtlib
str_misc.c
Generated on Thu Jan 23 2014 19:40:13 for FreeBASIC by
1.8.4