FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
time_datevalue.c
Go to the documentation of this file.
1
/* datevalue function */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
int
fb_DateValue
(
FBSTRING
*s )
7
{
8
int
year;
9
int
month;
10
int
day;
11
int
succeeded =
fb_DateParse
( s, &day, &month, &year );
12
13
fb_hStrDelTemp
( s );
14
15
if
( !succeeded ) {
16
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
17
return
0;
18
}
19
20
fb_ErrorSetNum
(
FB_RTERROR_OK
);
21
22
return
fb_DateSerial
( year, month, day );
23
}
24
rtlib
time_datevalue.c
Generated on Thu Jan 23 2014 19:40:14 for FreeBASIC by
1.8.4