SCCS/cftime clash
Randal Schwartz
merlyn at iwarp.intel.com
Fri Jun 15 07:11:32 AEST 1990
In article <13120 at smoke.BRL.MIL>, gwyn at smoke (Doug Gwyn) writes:
| 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);
| }
(didn't we do this already?)
static char format[] = "\045d\045m\045y\045H\045M\045S";
No runtime hacks needed. I dare SCCS to find %M% in *that*!
Just another C hacker,
--
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
More information about the Comp.unix.questions
mailing list