| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sfllang.h" char * get_day_abbrev (int day, Bool upper)
Returns the abbreviation for the specified day, which must be a value from 0 (Sunday) to 6 (Saturday). 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 (day >= 0 && day <= 6); strncpy (abbrev, day_table [day], 3); abbrev [3] = '\0'; if (upper) strupc (abbrev); return (handle_accents (abbrev)); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |