Path: utzoo!attcan!uunet!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: <13131@smoke.BRL.MIL> Date: 15 Jun 90 19:07:31 GMT References: <1056@nixsin.UUCP> <13120@smoke.BRL.MIL> <1990Jun14.211132.20855@iwarp.intel.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <1990Jun14.211132.20855@iwarp.intel.com> merlyn@iwarp.intel.com (Randal Schwartz) writes: -In article <13120@smoke.BRL.MIL>, gwyn@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.