diff options
| author | niklas <> | 1996-03-09 02:42:58 +0000 |
|---|---|---|
| committer | niklas <> | 1996-03-09 02:42:58 +0000 |
| commit | 83a23009542c2672b009a5ad496e0a28417a37f9 (patch) | |
| tree | 129097fa3d72ad3b6b85a0a600fd1e0b703a994b /src/lib/libc/string/strftime.c | |
| parent | 543eeae2382e5de0b9518bdd9f7a75e5686fd056 (diff) | |
| download | openbsd-83a23009542c2672b009a5ad496e0a28417a37f9.tar.gz openbsd-83a23009542c2672b009a5ad496e0a28417a37f9.tar.bz2 openbsd-83a23009542c2672b009a5ad496e0a28417a37f9.zip | |
From NetBSD: 960217 merge
Diffstat (limited to 'src/lib/libc/string/strftime.c')
| -rw-r--r-- | src/lib/libc/string/strftime.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libc/string/strftime.c b/src/lib/libc/string/strftime.c index b696a60e55..0b69e10ac0 100644 --- a/src/lib/libc/string/strftime.c +++ b/src/lib/libc/string/strftime.c | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | /* $OpenBSD: strftime.c,v 1.3 1996/03/09 02:42:58 niklas Exp $ */ | ||
| 2 | |||
| 1 | /* | 3 | /* |
| 2 | * Copyright (c) 1989 The Regents of the University of California. | 4 | * Copyright (c) 1989 The Regents of the University of California. |
| 3 | * All rights reserved. | 5 | * All rights reserved. |
| @@ -33,7 +35,7 @@ | |||
| 33 | 35 | ||
| 34 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
| 35 | /*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/ | 37 | /*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/ |
| 36 | static char *rcsid = "$Id: strftime.c,v 1.2 1995/12/30 08:16:41 deraadt Exp $"; | 38 | static char *rcsid = "$Id: strftime.c,v 1.3 1996/03/09 02:42:58 niklas Exp $"; |
| 37 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ |
| 38 | 40 | ||
| 39 | #include <sys/localedef.h> | 41 | #include <sys/localedef.h> |
| @@ -272,7 +274,7 @@ _fmt(format, t) | |||
| 272 | return(gsize); | 274 | return(gsize); |
| 273 | } | 275 | } |
| 274 | 276 | ||
| 275 | static | 277 | static int |
| 276 | _secs(t) | 278 | _secs(t) |
| 277 | struct tm *t; | 279 | struct tm *t; |
| 278 | { | 280 | { |
| @@ -289,7 +291,7 @@ _secs(t) | |||
| 289 | return(_add(++p)); | 291 | return(_add(++p)); |
| 290 | } | 292 | } |
| 291 | 293 | ||
| 292 | static | 294 | static int |
| 293 | _conv(n, digits, pad) | 295 | _conv(n, digits, pad) |
| 294 | int n, digits; | 296 | int n, digits; |
| 295 | char pad; | 297 | char pad; |
| @@ -304,7 +306,7 @@ _conv(n, digits, pad) | |||
| 304 | return(_add(++p)); | 306 | return(_add(++p)); |
| 305 | } | 307 | } |
| 306 | 308 | ||
| 307 | static | 309 | static int |
| 308 | _add(str) | 310 | _add(str) |
| 309 | register char *str; | 311 | register char *str; |
| 310 | { | 312 | { |
