diff options
author | Daniel Gerzo <danger@FreeBSD.org> | 2009-02-03 17:58:20 +0000 |
---|---|---|
committer | Daniel Gerzo <danger@FreeBSD.org> | 2009-02-03 17:58:20 +0000 |
commit | bd604b4b064135e661660c045cd31145e2e4ce71 (patch) | |
tree | c5d6de4ed720c8bb5b4d132f30cd8fbd28bbeb81 /lib/libc/string/wmemmove.c | |
parent | 23ee18767ede4614aedbe8645e896f0194f3500c (diff) | |
download | src-bd604b4b064135e661660c045cd31145e2e4ce71.tar.gz src-bd604b4b064135e661660c045cd31145e2e4ce71.zip |
- ANSIfy function definitions
- use nul when we are looking for a terminating character where appropriate
Approved by: imp
Notes
Notes:
svn path=/head/; revision=188080
Diffstat (limited to 'lib/libc/string/wmemmove.c')
-rw-r--r-- | lib/libc/string/wmemmove.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/string/wmemmove.c b/lib/libc/string/wmemmove.c index 6b3ee94e3a90..05cfd1082afe 100644 --- a/lib/libc/string/wmemmove.c +++ b/lib/libc/string/wmemmove.c @@ -38,11 +38,7 @@ __FBSDID("$FreeBSD$"); #include <wchar.h> wchar_t * -wmemmove(d, s, n) - wchar_t *d; - const wchar_t *s; - size_t n; +wmemmove(wchar_t *d, const wchar_t *s, size_t n) { - return (wchar_t *)memmove(d, s, n * sizeof(wchar_t)); } |