FreeBASIC  0.91.0
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 ) {
12  return &__fb_ctx.null_desc;
13  }
14 
16 
17  res = fb_IntlGetMonthName( month, abbreviation, FALSE );
18  if( res==NULL ) {
20  res = &__fb_ctx.null_desc;
21  }
22 
23  return res;
24 }