From 406984648d4184fcf396cebadb39c31ca3dbdd69 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Nov 2015 07:43:41 +0100 Subject: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/malloc.h | 2 +- include/wchar.h | 4 ++-- src/malloc.c | 2 +- src/string/mem/memccpy.c | 2 +- src/string/mem/memcmove.c | 2 +- src/wchar/wmemccpy.c | 2 +- src/wchar/wmemcmove.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/malloc.h b/include/malloc.h index d6f0be5..2b2748b 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -103,7 +103,7 @@ void* mallocz(size_t, int) * Variant of `malloc` that clears the allocation with zeroes. * * `zalloc(n)` is equivalent to `calloc(1, n)`, or equivalently, - * `calloc(n, m)` is equivalent to `zalloc(n * m)` assumming `n * m` + * `calloc(n, m)` is equivalent to `zalloc(n * m)` assuming `n * m` * does not overflow (in which case `calloc(n, m)` returns `ENOMEM`.) * * This is a klibc extension. diff --git a/include/wchar.h b/include/wchar.h index 5223d3f..b705510 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -153,7 +153,7 @@ wchar_t* wmempmove(wchar_t*, const wchar_t*, size_t); * @param c The character to stop at if encountered. * @param size The maximum number of wide characters to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. @@ -171,7 +171,7 @@ wchar_t* wmemccpy(wchar_t* restrict, const wchar_t* restrict, wchar_t, size_t); * @param c The character to stop at if encountered. * @param size The maximum number of wide characters to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. diff --git a/src/malloc.c b/src/malloc.c index 5a6739e..a3ad430 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -158,7 +158,7 @@ void* mallocz(size_t size, int clear) * Variant of `malloc` that clears the allocation with zeroes. * * `zalloc(n)` is equivalent to `calloc(1, n)`, or equivalently, - * `calloc(n, m)` is equivalent to `zalloc(n * m)` assumming `n * m` + * `calloc(n, m)` is equivalent to `zalloc(n * m)` assuming `n * m` * does not overflow (in which case `calloc(n, m)` returns `ENOMEM`.) * * This is a klibc extension. diff --git a/src/string/mem/memccpy.c b/src/string/mem/memccpy.c index 18e423d..01b4a4b 100644 --- a/src/string/mem/memccpy.c +++ b/src/string/mem/memccpy.c @@ -28,7 +28,7 @@ * @param c The byte to stop at if encountered. * @param size The maximum number of bytes to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. diff --git a/src/string/mem/memcmove.c b/src/string/mem/memcmove.c index 50ed1f9..ad10606 100644 --- a/src/string/mem/memcmove.c +++ b/src/string/mem/memcmove.c @@ -30,7 +30,7 @@ * @param c The byte to stop at if encountered. * @param size The maximum number of bytes to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. diff --git a/src/wchar/wmemccpy.c b/src/wchar/wmemccpy.c index 9e6f684..a6eb7ca 100644 --- a/src/wchar/wmemccpy.c +++ b/src/wchar/wmemccpy.c @@ -30,7 +30,7 @@ * @param c The character to stop at if encountered. * @param size The maximum number of wide characters to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. diff --git a/src/wchar/wmemcmove.c b/src/wchar/wmemcmove.c index 65bf5c5..a86138f 100644 --- a/src/wchar/wmemcmove.c +++ b/src/wchar/wmemcmove.c @@ -30,7 +30,7 @@ * @param c The character to stop at if encountered. * @param size The maximum number of wide characters to copy. * @return `NULL` if `c` was not encountered, otherwise - * the possition of `c` translated to `whither`, + * the position of `c` translated to `whither`, * that is, the address of `whither` plus the * number of copied characters; the address of * one character passed the last written character. -- cgit v1.2.3-70-g09d2