FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
array_resetdesc.c
Go to the documentation of this file.
1
2
/* descriptor reset, for dynamic local arrays */
3
4
#include "
fb.h
"
5
6
FBCALL
void
fb_ArrayResetDesc
(
FBARRAY
*array )
7
{
8
size_t
i;
9
FBARRAYDIM
*dim;
10
11
dim = &array->
dimTB
[0];
12
13
for
( i = 0; i < array->
dimensions
; i++ )
14
{
15
dim->elements = 0;
16
dim->lbound = 0;
17
dim->ubound = 0;
18
++dim;
19
}
20
21
array->
ptr
=
NULL
;
22
23
FB_ARRAY_SETDESC
( array, array->
element_len
, 0, 0, 0 );
24
}
rtlib
array_resetdesc.c
Generated on Thu Jan 23 2014 19:40:07 for FreeBASIC by
1.8.4