FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
time_monthname.c
Go to the documentation of this file.
1
/* returns the month name */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
FBSTRING
*
fb_MonthName
(
int
month,
int
abbreviation )
7
{
8
FBSTRING
*res;
9
10
if
( month < 1 || month > 12 ) {
11
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
12
return
&
__fb_ctx
.
null_desc
;
13
}
14
15
fb_ErrorSetNum
(
FB_RTERROR_OK
);
16
17
res =
fb_IntlGetMonthName
( month, abbreviation,
FALSE
);
18
if
( res==
NULL
) {
19
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
20
res = &
__fb_ctx
.
null_desc
;
21
}
22
23
return
res;
24
}
rtlib
time_monthname.c
Generated on Thu Jan 23 2014 19:40:14 for FreeBASIC by
1.8.4