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

 

get_day_abbrev

#include "sfllang.h"
char *
get_day_abbrev (int day, Bool upper)

Synopsis

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.

Source Code - (sfllang.c)

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

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