home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_01
/
8n01030a
< prev
next >
Wrap
Text File
|
1990-02-19
|
479b
|
24 lines
Listing 3
#define MAXDATEPRINTS 2 /* at least 2, maybe more */
date_print(i)
date i; /* internal date form */
{
static printable_date date[MAXDATEPRINTS];
static inuse = 0;
inuse = (inuse+1)%MAXDATEPRINTS; /* use next buffer */
/* actually do the work and convert date */
/* into a printable representation */
.....
memcpy(date[inuse],....);
return(date[inuse]);
}