|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sfllang.h" char * get_month_abbrev (int month, Bool upper)
Returns the abbreviation for the specified month, which must be a value from 1 to 12. The abbreviation (3 letters) is converted into uppercase if the 'upper' argument is true. Accented characters are formatted according to the current accents setting.
{
char
abbrev [4];
ASSERT (month >= 1 && month <= 12);
strncpy (abbrev, month_table [month - 1], 3);
abbrev [3] = '\0';
if (upper)
strupc (abbrev);
return (handle_accents (abbrev));
}
| | << | < | > | >> |
|