Print this page
9842 man page typos and spelling

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/string.3c.man.txt
          +++ new/usr/src/man/man3c/string.3c.man.txt
↓ open down ↓ 207 lines elided ↑ open up ↑
 208  208         strspn() function returns the length of the initial segment of string
 209  209         s1 that consists entirely of characters from string s2.
 210  210  
 211  211     strdup(), strndup(), strdupa(), strndupa()
 212  212         The strdup() function returns a pointer to a new string that is a
 213  213         duplicate of the string pointed to by  s1. The returned pointer can be
 214  214         passed to free(). The space for the new string is obtained using
 215  215         malloc(3C). If the new string cannot be created, a null pointer is
 216  216         returned and errno may be set to ENOMEM to indicate that the storage
 217  217         space available is insufficient. The strndup() function is identical to
 218      -       strdup(), execept it copies at most n bytes from s1 and ensures the
 219      -       copied string is awlays null terminated.
      218 +       strdup(), except it copies at most n bytes from s1 and ensures the
      219 +       copied string is always null terminated.
 220  220  
 221  221         The functions strdupa() and strndupa() behave identically to strdup()
 222  222         and strndup() respectively; however, instead of allocating memory using
 223  223         malloc(3C), they use alloca(3C). These functions are provided for
 224  224         compatibility only, their use is strongly discouraged due to their use
 225  225         of alloca(3C).
 226  226  
 227  227     strlen(), strnlen()
 228  228         The strlen() function returns the number of bytes in s, not including
 229  229         the terminating null character.
↓ open down ↓ 243 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX