Download this file
26 lines (20 with data), 506 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | /* read stmt for integer's */
#include "fb.h"
FBCALL void fb_DataReadInt( int *dst )
{
FB_LOCK();
if( __fb_data_ptr ) {
if( __fb_data_ptr->len == FB_DATATYPE_OFS ) {
*dst = (size_t)__fb_data_ptr->ofs;
} else if( __fb_data_ptr->len & FB_DATATYPE_WSTR ) {
*dst = fb_WstrToInt( __fb_data_ptr->wstr, __fb_data_ptr->len & 0x7FFF );
} else {
*dst = fb_hStr2Int( __fb_data_ptr->zstr, __fb_data_ptr->len );
}
} else {
/* no more DATA */
*dst = 0.0;
}
fb_DataNext( );
FB_UNLOCK();
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.