Print this page
9842 man page typos and spelling

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/string.3c
          +++ new/usr/src/man/man3c/string.3c
↓ open down ↓ 350 lines elided ↑ open up ↑
 351  351  The \fBstrspn()\fR function returns the length of the initial segment of string
 352  352  \fIs1\fR that consists entirely of characters from string \fIs2\fR.
 353  353  .SS "\fBstrdup()\fR, \fBstrndup()\fR, \fBstrdupa()\fR, \fBstrndupa()\fR"
 354  354  .LP
 355  355  The \fBstrdup()\fR function returns a pointer to a new string that is a
 356  356  duplicate of the string pointed to by  \fIs1\fR. The returned pointer can be
 357  357  passed to \fBfree()\fR. The space for the new string is obtained using
 358  358  \fBmalloc\fR(3C). If the new string cannot be created, a null pointer is
 359  359  returned and \fBerrno\fR may be set to \fBENOMEM\fR to indicate that the
 360  360  storage space available is insufficient. The \fBstrndup()\fR function is
 361      -identical to \fBstrdup()\fR, execept it copies at most \fIn\fR bytes from
 362      -\fBs1\fR and ensures the copied string is awlays null terminated.
      361 +identical to \fBstrdup()\fR, except it copies at most \fIn\fR bytes from
      362 +\fBs1\fR and ensures the copied string is always null terminated.
 363  363  .LP
 364  364  The functions \fBstrdupa()\fR and \fBstrndupa()\fR behave identically to
 365  365  \fBstrdup()\fR and \fBstrndup()\fR respectively; however, instead of allocating
 366  366  memory using \fBmalloc\fR(3C), they use \fBalloca\fR(3C). These functions are
 367  367  provided for compatibility only, their use is strongly discouraged due to their
 368  368  use of \fBalloca\fR(3C).
 369  369  .SS "\fBstrlen()\fR, \fBstrnlen()\fR"
 370  370  The \fBstrlen()\fR function returns the number of bytes in \fIs\fR, not
 371  371  including the terminating null character.
 372  372  .LP
↓ open down ↓ 259 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX