home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!uunet.ca!wildcan!sq!chance!john
- From: john@chance.gts.org (John R MacMillan)
- Subject: Re: sccs eats good code -
- Message-ID: <1992Dec22.162453.4009@chance.gts.org>
- Organization: $HOME
- References: <1992Dec21.4396.29992@dosgate> <1992Dec22.005828.20926@jpl-devvax.jpl.nasa.gov> <1992Dec22.035408.22372@cs.tu-berlin.de>
- Date: Tue, 22 Dec 1992 16:24:53 GMT
- Lines: 13
-
- |Another portable alternative to the suggested
- |
- | static char fmt[] = { '%','w','%','H','%','M','%','S','\0' };
- |
- |(braces courtesy of International Brace Fund for the Needy ;-) would be
- |
- | if (strftime(time_str, 64, "%w%H\
- |%M%S", time_struct) != 7)
-
- And yet another:
- if (strftime(time_str, 64, "%w%" "H%" "M%S", time_struct) != 7)
-
- (or however you want to break it up).
-