diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/string/wcsdup.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/wcsdup.3 b/src/lib/libc/string/wcsdup.3 index 37f82181eb..4d29ac218f 100644 --- a/src/lib/libc/string/wcsdup.3 +++ b/src/lib/libc/string/wcsdup.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: wcsdup.3,v 1.1 2011/07/04 04:37:34 nicm Exp $ | 1 | .\" $OpenBSD: wcsdup.3,v 1.2 2011/07/05 19:01:31 nicm Exp $ |
| 2 | .\" $NetBSD: wcsdup.3,v 1.3 2010/12/16 17:42:28 wiz Exp $ | 2 | .\" $NetBSD: wcsdup.3,v 1.3 2010/12/16 17:42:28 wiz Exp $ |
| 3 | .\" | 3 | .\" |
| 4 | .\" Copyright (c) 1990, 1991, 1993 | 4 | .\" Copyright (c) 1990, 1991, 1993 |
| @@ -30,7 +30,7 @@ | |||
| 30 | .\" | 30 | .\" |
| 31 | .\" from: @(#)strdup.3 8.1 (Berkeley) 6/9/93 | 31 | .\" from: @(#)strdup.3 8.1 (Berkeley) 6/9/93 |
| 32 | .\" | 32 | .\" |
| 33 | .Dd $Mdocdate: July 4 2011 $ | 33 | .Dd $Mdocdate: July 5 2011 $ |
| 34 | .Dt WCSDUP 3 | 34 | .Dt WCSDUP 3 |
| 35 | .Os | 35 | .Os |
| 36 | .Sh NAME | 36 | .Sh NAME |
| @@ -63,7 +63,7 @@ to an allocated area of memory containing the nul-terminated string | |||
| 63 | .Bd -literal -offset indent | 63 | .Bd -literal -offset indent |
| 64 | wchar_t *p; | 64 | wchar_t *p; |
| 65 | 65 | ||
| 66 | if (p = wcsdup(L"foobar"), p == NULL) { | 66 | if ((p = wcsdup(L"foobar")) == NULL) { |
| 67 | fprintf(stderr, "Out of memory.\en"); | 67 | fprintf(stderr, "Out of memory.\en"); |
| 68 | exit(1); | 68 | exit(1); |
| 69 | } | 69 | } |
