SCCS/cftime clash

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Jun 15 05:37:25 AEST 1990


In article <1056 at nixsin.UUCP> koerberm at nixsin.UUCP (Mathias Koerber) writes:
>I got a problem involving SCCS. In my program (stored as an SCCS-file)
>I use cftime(buf,"%d%m%y%H%M%S",&now) to generate a date/timestring

There is no really elegant solution to this.  One portable solution
is to use instead
	{
	static char format[] = "%d%m%y%H?M%S";
	format[8] = '%';	/* darn that SCCS */
	cftime(buf,format,&now);
	}



More information about the Comp.unix.questions mailing list