Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: SCCS/cftime clash Keywords: %d%m%y%H%M%S SCCS cftime Message-ID: <13120@smoke.BRL.MIL> Date: 14 Jun 90 19:37:25 GMT References: <1056@nixsin.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 11 In article <1056@nixsin.UUCP> koerberm@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); }