Determine the name of a specified weekday in a specified language.
char *dbdayname(dbproc, language, daynum) DBPROCESS *dbproc; char *language; int daynum;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The name of the desired language.
The number of the desired day. Day numbers range from 1 (Monday) to 7 (Sunday).
The name of the specified day on success; a NULL pointer on error.
dbdayname returns the name of the specified day in the specified language. If language is NULL, dbproc’s current language is used. If both language and dbproc are NULL, then U.S. English is used.
The following code fragment illustrates the use of dbdayname:
/*
** Retrieve the name of each day of the week in
** U.S. English.
*/
for (daynum = 1; daynum <= 7; daynum++)
printf("Day %d: %s\n", daynum,
dbdayname((DBPROCESS *)NULL, (char *)NULL,
daynum));