| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

get_month_abbrev

#include "sfllang.h"
char *
get_month_abbrev (int month, Bool upper)

Synopsis

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.

Source Code - (sfllang.c)

{
    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));
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation