diff options
author | espie <> | 2005-06-19 22:12:07 +0000 |
---|---|---|
committer | espie <> | 2005-06-19 22:12:07 +0000 |
commit | dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65 (patch) | |
tree | 4449ef0e49aca9138958d50858c3ce50255544ca | |
parent | 7019160947103ed769aa02b61ad609c0822a53cc (diff) | |
download | openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.gz openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.bz2 openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.zip |
K&R -> ANSI
APIWARN
okay millert@, otto@
-rw-r--r-- | src/lib/libc/string/wcscat.c | 13 | ||||
-rw-r--r-- | src/lib/libc/string/wcschr.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcscmp.c | 7 | ||||
-rw-r--r-- | src/lib/libc/string/wcscpy.c | 13 | ||||
-rw-r--r-- | src/lib/libc/string/wcscspn.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcslcat.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wcslcpy.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wcslen.c | 7 | ||||
-rw-r--r-- | src/lib/libc/string/wcsncat.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wcsncmp.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcsncpy.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wcspbrk.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcsrchr.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcsspn.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wcsstr.c | 10 | ||||
-rw-r--r-- | src/lib/libc/string/wcstok.c | 10 | ||||
-rw-r--r-- | src/lib/libc/string/wcswidth.c | 8 | ||||
-rw-r--r-- | src/lib/libc/string/wmemchr.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wmemcmp.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wmemcpy.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wmemmove.c | 9 | ||||
-rw-r--r-- | src/lib/libc/string/wmemset.c | 11 |
22 files changed, 79 insertions, 120 deletions
diff --git a/src/lib/libc/string/wcscat.c b/src/lib/libc/string/wcscat.c index 69c8c0c251..80de3f0d5e 100644 --- a/src/lib/libc/string/wcscat.c +++ b/src/lib/libc/string/wcscat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcscat.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcscat.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcscat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcscat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,18 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcscat.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcscat.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | #if defined(APIWARN) | ||
39 | __warn_references(wcscat, | ||
40 | "warning: wcscat() is almost always misused, please use wcslcat()"); | ||
41 | #endif | ||
42 | |||
38 | wchar_t * | 43 | wchar_t * |
39 | wcscat(s1, s2) | 44 | wcscat(wchar_t *s1, const wchar_t *s2) |
40 | wchar_t *s1; | ||
41 | const wchar_t *s2; | ||
42 | { | 45 | { |
43 | wchar_t *p; | 46 | wchar_t *p; |
44 | wchar_t *q; | 47 | wchar_t *q; |
diff --git a/src/lib/libc/string/wcschr.c b/src/lib/libc/string/wcschr.c index eb4e65a85d..8086122517 100644 --- a/src/lib/libc/string/wcschr.c +++ b/src/lib/libc/string/wcschr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcschr.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcschr.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcschr.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcschr.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcschr.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcschr.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wcschr(s, c) | 39 | wcschr(const wchar_t *s, wchar_t c) |
40 | const wchar_t *s; | ||
41 | wchar_t c; | ||
42 | { | 40 | { |
43 | const wchar_t *p; | 41 | const wchar_t *p; |
44 | 42 | ||
diff --git a/src/lib/libc/string/wcscmp.c b/src/lib/libc/string/wcscmp.c index 0f0dc0efdf..d8a9aa73fb 100644 --- a/src/lib/libc/string/wcscmp.c +++ b/src/lib/libc/string/wcscmp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ | 2 | /* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
37 | static char *rcsid = "$OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 37 | static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
39 | 39 | ||
40 | #include <wchar.h> | 40 | #include <wchar.h> |
@@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | |||
44 | * Compare strings. | 44 | * Compare strings. |
45 | */ | 45 | */ |
46 | int | 46 | int |
47 | wcscmp(s1, s2) | 47 | wcscmp(const wchar_t *s1, const wchar_t *s2) |
48 | const wchar_t *s1, *s2; | ||
49 | { | 48 | { |
50 | 49 | ||
51 | while (*s1 == *s2++) | 50 | while (*s1 == *s2++) |
diff --git a/src/lib/libc/string/wcscpy.c b/src/lib/libc/string/wcscpy.c index 266ea4a3df..e5bf8b0dbf 100644 --- a/src/lib/libc/string/wcscpy.c +++ b/src/lib/libc/string/wcscpy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcscpy.c,v 1.2 2005/04/16 10:40:45 tom Exp $ */ | 1 | /* $OpenBSD: wcscpy.c,v 1.3 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcscpy.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcscpy.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,18 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcscpy.c,v 1.2 2005/04/16 10:40:45 tom Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcscpy.c,v 1.3 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | #if defined(APIWARN) | ||
39 | __warn_references(wcscpy, | ||
40 | "warning: wcscpy() is almost always misused, please use wcslcpy()"); | ||
41 | #endif | ||
42 | |||
38 | wchar_t * | 43 | wchar_t * |
39 | wcscpy(s1, s2) | 44 | wcscpy(wchar_t *s1, const wchar_t *s2) |
40 | wchar_t *s1; | ||
41 | const wchar_t *s2; | ||
42 | { | 45 | { |
43 | wchar_t *p; | 46 | wchar_t *p; |
44 | const wchar_t *q; | 47 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcscspn.c b/src/lib/libc/string/wcscspn.c index 905c937695..59a9510156 100644 --- a/src/lib/libc/string/wcscspn.c +++ b/src/lib/libc/string/wcscspn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcscspn.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcscspn.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcscspn.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcscspn.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcscspn.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcscspn.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | size_t | 38 | size_t |
39 | wcscspn(s, set) | 39 | wcscspn(const wchar_t *s, const wchar_t *set) |
40 | const wchar_t *s; | ||
41 | const wchar_t *set; | ||
42 | { | 40 | { |
43 | const wchar_t *p; | 41 | const wchar_t *p; |
44 | const wchar_t *q; | 42 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcslcat.c b/src/lib/libc/string/wcslcat.c index 266d012ad4..e74d52f4eb 100644 --- a/src/lib/libc/string/wcslcat.c +++ b/src/lib/libc/string/wcslcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcslcat.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcslcat.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcslcat.c,v 1.2 2001/01/03 14:33:02 lukem Exp $ */ | 2 | /* $NetBSD: wcslcat.c,v 1.2 2001/01/03 14:33:02 lukem Exp $ */ |
3 | /* from OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun Exp */ | 3 | /* from OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun Exp */ |
4 | 4 | ||
@@ -30,7 +30,7 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcslcat.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcslcat.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <sys/types.h> | 36 | #include <sys/types.h> |
@@ -44,10 +44,7 @@ static char *rcsid = "$OpenBSD: wcslcat.c,v 1.1 2005/04/13 16:35:58 espie Exp $" | |||
44 | * truncation occurred. | 44 | * truncation occurred. |
45 | */ | 45 | */ |
46 | size_t | 46 | size_t |
47 | wcslcat(dst, src, siz) | 47 | wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) |
48 | wchar_t *dst; | ||
49 | const wchar_t *src; | ||
50 | size_t siz; | ||
51 | { | 48 | { |
52 | wchar_t *d = dst; | 49 | wchar_t *d = dst; |
53 | const wchar_t *s = src; | 50 | const wchar_t *s = src; |
diff --git a/src/lib/libc/string/wcslcpy.c b/src/lib/libc/string/wcslcpy.c index 101161e9ce..a6acb80d58 100644 --- a/src/lib/libc/string/wcslcpy.c +++ b/src/lib/libc/string/wcslcpy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcslcpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcslcpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcslcpy.c,v 1.2 2001/01/03 14:33:02 lukem Exp $ */ | 2 | /* $NetBSD: wcslcpy.c,v 1.2 2001/01/03 14:33:02 lukem Exp $ */ |
3 | /* from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp */ | 3 | /* from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp */ |
4 | 4 | ||
@@ -30,7 +30,7 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcslcpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcslcpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <sys/types.h> | 36 | #include <sys/types.h> |
@@ -42,10 +42,7 @@ static char *rcsid = "$OpenBSD: wcslcpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $" | |||
42 | * Returns wcslen(src); if retval >= siz, truncation occurred. | 42 | * Returns wcslen(src); if retval >= siz, truncation occurred. |
43 | */ | 43 | */ |
44 | size_t | 44 | size_t |
45 | wcslcpy(dst, src, siz) | 45 | wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) |
46 | wchar_t *dst; | ||
47 | const wchar_t *src; | ||
48 | size_t siz; | ||
49 | { | 46 | { |
50 | wchar_t *d = dst; | 47 | wchar_t *d = dst; |
51 | const wchar_t *s = src; | 48 | const wchar_t *s = src; |
diff --git a/src/lib/libc/string/wcslen.c b/src/lib/libc/string/wcslen.c index 6d1c5e5f30..8bd5b5d07f 100644 --- a/src/lib/libc/string/wcslen.c +++ b/src/lib/libc/string/wcslen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcslen.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcslen.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcslen.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcslen.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,14 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcslen.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcslen.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | size_t | 38 | size_t |
39 | wcslen(s) | 39 | wcslen(const wchar_t *s) |
40 | const wchar_t *s; | ||
41 | { | 40 | { |
42 | const wchar_t *p; | 41 | const wchar_t *p; |
43 | 42 | ||
diff --git a/src/lib/libc/string/wcsncat.c b/src/lib/libc/string/wcsncat.c index 984ef4cabb..b8e000c864 100644 --- a/src/lib/libc/string/wcsncat.c +++ b/src/lib/libc/string/wcsncat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsncat.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsncat.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsncat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ | 2 | /* $NetBSD: wcsncat.c,v 1.2 2001/01/03 14:29:36 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,16 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcsncat.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcsncat.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wcsncat(s1, s2, n) | 39 | wcsncat(wchar_t *s1, const wchar_t *s2, size_t n) |
40 | wchar_t *s1; | ||
41 | const wchar_t *s2; | ||
42 | size_t n; | ||
43 | { | 40 | { |
44 | wchar_t *p; | 41 | wchar_t *p; |
45 | wchar_t *q; | 42 | wchar_t *q; |
diff --git a/src/lib/libc/string/wcsncmp.c b/src/lib/libc/string/wcsncmp.c index e89b7914d1..aaa96b97a6 100644 --- a/src/lib/libc/string/wcsncmp.c +++ b/src/lib/libc/string/wcsncmp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsncmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsncmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsncmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ | 2 | /* $NetBSD: wcsncmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -31,16 +31,14 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) |
34 | static char *rcsid = "$OpenBSD: wcsncmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 34 | static char *rcsid = "$OpenBSD: wcsncmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
35 | #endif /* LIBC_SCCS and not lint */ | 35 | #endif /* LIBC_SCCS and not lint */ |
36 | 36 | ||
37 | #include <wchar.h> | 37 | #include <wchar.h> |
38 | #include "locale/runetype.h" | 38 | #include "locale/runetype.h" |
39 | 39 | ||
40 | int | 40 | int |
41 | wcsncmp(s1, s2, n) | 41 | wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
42 | const wchar_t *s1, *s2; | ||
43 | size_t n; | ||
44 | { | 42 | { |
45 | 43 | ||
46 | if (n == 0) | 44 | if (n == 0) |
diff --git a/src/lib/libc/string/wcsncpy.c b/src/lib/libc/string/wcsncpy.c index aa7bf95919..2bf020e268 100644 --- a/src/lib/libc/string/wcsncpy.c +++ b/src/lib/libc/string/wcsncpy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsncpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsncpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsncpy.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wcsncpy.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,16 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcsncpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcsncpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wcsncpy(s1, s2, n) | 39 | wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n) |
40 | wchar_t *s1; | ||
41 | const wchar_t *s2; | ||
42 | size_t n; | ||
43 | { | 40 | { |
44 | wchar_t *p; | 41 | wchar_t *p; |
45 | const wchar_t *q; | 42 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcspbrk.c b/src/lib/libc/string/wcspbrk.c index aeaac6ced4..943057a2e6 100644 --- a/src/lib/libc/string/wcspbrk.c +++ b/src/lib/libc/string/wcspbrk.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcspbrk.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcspbrk.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcspbrk.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wcspbrk.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcspbrk.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcspbrk.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wcspbrk(s, set) | 39 | wcspbrk(const wchar_t *s, const wchar_t *set) |
40 | const wchar_t *s; | ||
41 | const wchar_t *set; | ||
42 | { | 40 | { |
43 | const wchar_t *p; | 41 | const wchar_t *p; |
44 | const wchar_t *q; | 42 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcsrchr.c b/src/lib/libc/string/wcsrchr.c index d0cd8aebb4..ced0fe3aae 100644 --- a/src/lib/libc/string/wcsrchr.c +++ b/src/lib/libc/string/wcsrchr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsrchr.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsrchr.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsrchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wcsrchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcsrchr.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcsrchr.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wcsrchr(s, c) | 39 | wcsrchr(const wchar_t *s, wchar_t c) |
40 | const wchar_t *s; | ||
41 | wchar_t c; | ||
42 | { | 40 | { |
43 | const wchar_t *p; | 41 | const wchar_t *p; |
44 | 42 | ||
diff --git a/src/lib/libc/string/wcsspn.c b/src/lib/libc/string/wcsspn.c index 52b22e3d3b..80f315f071 100644 --- a/src/lib/libc/string/wcsspn.c +++ b/src/lib/libc/string/wcsspn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsspn.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsspn.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsspn.c,v 1.3 2001/09/21 16:09:15 yamt Exp $ */ | 2 | /* $NetBSD: wcsspn.c,v 1.3 2001/09/21 16:09:15 yamt Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcsspn.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcsspn.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | size_t | 38 | size_t |
39 | wcsspn(s, set) | 39 | wcsspn(const wchar_t *s, const wchar_t *set) |
40 | const wchar_t *s; | ||
41 | const wchar_t *set; | ||
42 | { | 40 | { |
43 | const wchar_t *p; | 41 | const wchar_t *p; |
44 | const wchar_t *q; | 42 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcsstr.c b/src/lib/libc/string/wcsstr.c index 992b5cab0f..9f3303004a 100644 --- a/src/lib/libc/string/wcsstr.c +++ b/src/lib/libc/string/wcsstr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcsstr.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcsstr.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcsstr.c,v 1.3 2003/03/05 20:18:17 tshiozak Exp $ */ | 2 | /* $NetBSD: wcsstr.c,v 1.3 2003/03/05 20:18:17 tshiozak Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,19 +30,17 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcsstr.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcsstr.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | #ifdef WCSWCS | 39 | #ifdef WCSWCS |
40 | wcswcs(big, little) | 40 | wcswcs(const wchar_t *big, const wchar_t *little) |
41 | #else | 41 | #else |
42 | wcsstr(big, little) | 42 | wcsstr(const wchar_t *big, const wchar_t *little) |
43 | #endif | 43 | #endif |
44 | const wchar_t *big; | ||
45 | const wchar_t *little; | ||
46 | { | 44 | { |
47 | const wchar_t *p; | 45 | const wchar_t *p; |
48 | const wchar_t *q; | 46 | const wchar_t *q; |
diff --git a/src/lib/libc/string/wcstok.c b/src/lib/libc/string/wcstok.c index 1b0790fdc6..619aea8acb 100644 --- a/src/lib/libc/string/wcstok.c +++ b/src/lib/libc/string/wcstok.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcstok.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcstok.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcstok.c,v 1.3 2003/07/10 08:50:48 tshiozak Exp $ */ | 2 | /* $NetBSD: wcstok.c,v 1.3 2003/07/10 08:50:48 tshiozak Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -43,16 +43,14 @@ | |||
43 | */ | 43 | */ |
44 | 44 | ||
45 | #if defined(LIBC_SCCS) && !defined(lint) | 45 | #if defined(LIBC_SCCS) && !defined(lint) |
46 | static char *rcsid = "$OpenBSD: wcstok.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 46 | static char *rcsid = "$OpenBSD: wcstok.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
47 | #endif /* LIBC_SCCS and not lint */ | 47 | #endif /* LIBC_SCCS and not lint */ |
48 | 48 | ||
49 | #include <wchar.h> | 49 | #include <wchar.h> |
50 | 50 | ||
51 | wchar_t * | 51 | wchar_t * |
52 | wcstok(s, delim, last) | 52 | wcstok(wchar_t * __restrict s, const wchar_t * __restrict delim, |
53 | wchar_t * __restrict s; | 53 | wchar_t ** __restrict last) |
54 | const wchar_t * __restrict delim; | ||
55 | wchar_t ** __restrict last; | ||
56 | { | 54 | { |
57 | const wchar_t *spanp; | 55 | const wchar_t *spanp; |
58 | wchar_t c, sc; | 56 | wchar_t c, sc; |
diff --git a/src/lib/libc/string/wcswidth.c b/src/lib/libc/string/wcswidth.c index c55d9ae72a..ff6b4e1d3e 100644 --- a/src/lib/libc/string/wcswidth.c +++ b/src/lib/libc/string/wcswidth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wcswidth.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wcswidth.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wcswidth.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wcswidth.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,15 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wcswidth.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wcswidth.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | int | 38 | int |
39 | wcswidth(s, n) | 39 | wcswidth(const wchar_t *s, size_t n) |
40 | const wchar_t *s; | ||
41 | size_t n; | ||
42 | { | 40 | { |
43 | int w; | 41 | int w; |
44 | 42 | ||
diff --git a/src/lib/libc/string/wmemchr.c b/src/lib/libc/string/wmemchr.c index 0e50205863..f3b8023c13 100644 --- a/src/lib/libc/string/wmemchr.c +++ b/src/lib/libc/string/wmemchr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wmemchr.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wmemchr.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wmemchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wmemchr.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,16 +30,13 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wmemchr.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wmemchr.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wmemchr(s, c, n) | 39 | wmemchr(const wchar_t *s, wchar_t c, size_t n) |
40 | const wchar_t *s; | ||
41 | wchar_t c; | ||
42 | size_t n; | ||
43 | { | 40 | { |
44 | size_t i; | 41 | size_t i; |
45 | 42 | ||
diff --git a/src/lib/libc/string/wmemcmp.c b/src/lib/libc/string/wmemcmp.c index 4792a3b456..fc021c11d1 100644 --- a/src/lib/libc/string/wmemcmp.c +++ b/src/lib/libc/string/wmemcmp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wmemcmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wmemcmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wmemcmp.c,v 1.3 2003/04/06 18:33:23 tshiozak Exp $ */ | 2 | /* $NetBSD: wmemcmp.c,v 1.3 2003/04/06 18:33:23 tshiozak Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,17 +30,14 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wmemcmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wmemcmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | #include "locale/runetype.h" | 37 | #include "locale/runetype.h" |
38 | 38 | ||
39 | int | 39 | int |
40 | wmemcmp(s1, s2, n) | 40 | wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) |
41 | const wchar_t *s1; | ||
42 | const wchar_t *s2; | ||
43 | size_t n; | ||
44 | { | 41 | { |
45 | size_t i; | 42 | size_t i; |
46 | 43 | ||
diff --git a/src/lib/libc/string/wmemcpy.c b/src/lib/libc/string/wmemcpy.c index 628795ce41..6e7e030472 100644 --- a/src/lib/libc/string/wmemcpy.c +++ b/src/lib/libc/string/wmemcpy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wmemcpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wmemcpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wmemcpy.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wmemcpy.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,17 +30,14 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wmemcpy.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wmemcpy.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <wchar.h> | 37 | #include <wchar.h> |
38 | 38 | ||
39 | wchar_t * | 39 | wchar_t * |
40 | wmemcpy(d, s, n) | 40 | wmemcpy(wchar_t *d, const wchar_t *s, size_t n) |
41 | wchar_t *d; | ||
42 | const wchar_t *s; | ||
43 | size_t n; | ||
44 | { | 41 | { |
45 | 42 | ||
46 | return (wchar_t *)memcpy(d, s, n * sizeof(wchar_t)); | 43 | return (wchar_t *)memcpy(d, s, n * sizeof(wchar_t)); |
diff --git a/src/lib/libc/string/wmemmove.c b/src/lib/libc/string/wmemmove.c index e5a0a1fe25..5de2430656 100644 --- a/src/lib/libc/string/wmemmove.c +++ b/src/lib/libc/string/wmemmove.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wmemmove.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wmemmove.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wmemmove.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wmemmove.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,17 +30,14 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wmemmove.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wmemmove.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <string.h> | 36 | #include <string.h> |
37 | #include <wchar.h> | 37 | #include <wchar.h> |
38 | 38 | ||
39 | wchar_t * | 39 | wchar_t * |
40 | wmemmove(d, s, n) | 40 | wmemmove(wchar_t *d, const wchar_t *s, size_t n) |
41 | wchar_t *d; | ||
42 | const wchar_t *s; | ||
43 | size_t n; | ||
44 | { | 41 | { |
45 | 42 | ||
46 | return (wchar_t *)memmove(d, s, n * sizeof(wchar_t)); | 43 | return (wchar_t *)memmove(d, s, n * sizeof(wchar_t)); |
diff --git a/src/lib/libc/string/wmemset.c b/src/lib/libc/string/wmemset.c index abcbe44c46..9db63f05da 100644 --- a/src/lib/libc/string/wmemset.c +++ b/src/lib/libc/string/wmemset.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: wmemset.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ | 1 | /* $OpenBSD: wmemset.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ |
2 | /* $NetBSD: wmemset.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ | 2 | /* $NetBSD: wmemset.c,v 1.2 2001/01/03 14:29:37 lukem Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -30,21 +30,18 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | #if defined(LIBC_SCCS) && !defined(lint) | 32 | #if defined(LIBC_SCCS) && !defined(lint) |
33 | static char *rcsid = "$OpenBSD: wmemset.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; | 33 | static char *rcsid = "$OpenBSD: wmemset.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; |
34 | #endif /* LIBC_SCCS and not lint */ | 34 | #endif /* LIBC_SCCS and not lint */ |
35 | 35 | ||
36 | #include <wchar.h> | 36 | #include <wchar.h> |
37 | 37 | ||
38 | wchar_t * | 38 | wchar_t * |
39 | wmemset(s, c, n) | 39 | wmemset(wchar_t *s, wchar_t c, size_t n) |
40 | wchar_t *s; | ||
41 | wchar_t c; | ||
42 | size_t n; | ||
43 | { | 40 | { |
44 | size_t i; | 41 | size_t i; |
45 | wchar_t *p; | 42 | wchar_t *p; |
46 | 43 | ||
47 | p = (wchar_t *)s; | 44 | p = s; |
48 | for (i = 0; i < n; i++) { | 45 | for (i = 0; i < n; i++) { |
49 | *p = c; | 46 | *p = c; |
50 | p++; | 47 | p++; |