Print this page
9842 man page typos and spelling
@@ -213,12 +213,12 @@
duplicate of the string pointed to by s1. The returned pointer can be
passed to free(). The space for the new string is obtained using
malloc(3C). If the new string cannot be created, a null pointer is
returned and errno may be set to ENOMEM to indicate that the storage
space available is insufficient. The strndup() function is identical to
- strdup(), execept it copies at most n bytes from s1 and ensures the
- copied string is awlays null terminated.
+ strdup(), except it copies at most n bytes from s1 and ensures the
+ copied string is always null terminated.
The functions strdupa() and strndupa() behave identically to strdup()
and strndup() respectively; however, instead of allocating memory using
malloc(3C), they use alloca(3C). These functions are provided for
compatibility only, their use is strongly discouraged due to their use