Browse Source

Add ERRORS section (the strdup(3) function may fail and set errno to any of the

errors specified by the library routine malloc(3)).
OPENBSD_2_7
aaron 24 years ago
parent
commit
a1359f55ef
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/lib/libc/string/strdup.3

+ 8
- 1
src/lib/libc/string/strdup.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: strdup.3,v 1.9 2000/04/21 15:27:40 aaron Exp $
.\" $OpenBSD: strdup.3,v 1.10 2000/04/21 15:32:15 aaron Exp $
.\" .\"
.\" Copyright (c) 1990, 1991, 1993 .\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -68,6 +68,13 @@ if ((p = strdup("foobar")) == NULL) {
exit(1); exit(1);
} }
.Ed .Ed
.Sh ERRORS
The
.Fn strdup
function may fail and set the external variable
.Va errno
for any of the errors specified for the library function
.Xr malloc 3 .
.Sh SEE ALSO .Sh SEE ALSO
.Xr free 3 , .Xr free 3 ,
.Xr malloc 3 , .Xr malloc 3 ,


Loading…
Cancel
Save