SCCS/cftime clash

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Jun 16 05:07:31 AEST 1990


In article <1990Jun14.211132.20855 at iwarp.intel.com> merlyn at iwarp.intel.com (Randal Schwartz) writes:
-In article <13120 at smoke.BRL.MIL>, gwyn at smoke (Doug Gwyn) writes:
-| 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);
-| 	}
-	static char format[] = "\045d\045m\045y\045H\045M\045S";

Note that I said *portable* solution.



More information about the Comp.unix.questions mailing list