diff options
Diffstat (limited to 'src/lib/libc/string/memset.3')
| -rw-r--r-- | src/lib/libc/string/memset.3 | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/src/lib/libc/string/memset.3 b/src/lib/libc/string/memset.3 index 1afc052182..db94cb9ba6 100644 --- a/src/lib/libc/string/memset.3 +++ b/src/lib/libc/string/memset.3 | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | .\" $OpenBSD: memset.3,v 1.7 2011/07/25 00:38:52 schwarze Exp $ | ||
| 2 | .\" | ||
| 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. | 4 | .\" All rights reserved. |
| 3 | .\" | 5 | .\" |
| @@ -13,11 +15,7 @@ | |||
| 13 | .\" 2. Redistributions in binary form must reproduce the above copyright | 15 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 14 | .\" notice, this list of conditions and the following disclaimer in the | 16 | .\" notice, this list of conditions and the following disclaimer in the |
| 15 | .\" documentation and/or other materials provided with the distribution. | 17 | .\" documentation and/or other materials provided with the distribution. |
| 16 | .\" 3. All advertising materials mentioning features or use of this software | 18 | .\" 3. Neither the name of the University nor the names of its contributors |
| 17 | .\" must display the following acknowledgement: | ||
| 18 | .\" This product includes software developed by the University of | ||
| 19 | .\" California, Berkeley and its contributors. | ||
| 20 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 21 | .\" may be used to endorse or promote products derived from this software | 19 | .\" may be used to endorse or promote products derived from this software |
| 22 | .\" without specific prior written permission. | 20 | .\" without specific prior written permission. |
| 23 | .\" | 21 | .\" |
| @@ -33,10 +31,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
| 35 | .\" | 33 | .\" |
| 36 | .\" from: @(#)memset.3 5.4 (Berkeley) 6/29/91 | 34 | .Dd $Mdocdate: July 25 2011 $ |
| 37 | .\" $Id: memset.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
| 38 | .\" | ||
| 39 | .Dd June 29, 1991 | ||
| 40 | .Dt MEMSET 3 | 35 | .Dt MEMSET 3 |
| 41 | .Os | 36 | .Os |
| 42 | .Sh NAME | 37 | .Sh NAME |
| @@ -49,19 +44,32 @@ | |||
| 49 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
| 50 | The | 45 | The |
| 51 | .Fn memset | 46 | .Fn memset |
| 52 | function | 47 | function writes |
| 53 | writes | ||
| 54 | .Fa len | 48 | .Fa len |
| 55 | bytes of value | 49 | bytes of value |
| 56 | .Fa c | 50 | .Fa c |
| 57 | (converted to an unsigned char) to the string | 51 | (converted to an |
| 52 | .Li unsigned char ) | ||
| 53 | to the string | ||
| 54 | .Fa b . | ||
| 55 | .Sh RETURN VALUES | ||
| 56 | The | ||
| 57 | .Fn memset | ||
| 58 | function returns the original value of | ||
| 58 | .Fa b . | 59 | .Fa b . |
| 59 | .Sh SEE ALSO | 60 | .Sh SEE ALSO |
| 60 | .Xr bzero 3 , | 61 | .Xr bzero 3 , |
| 61 | .Xr swab 3 | 62 | .Xr swab 3 , |
| 63 | .Xr wmemset 3 | ||
| 62 | .Sh STANDARDS | 64 | .Sh STANDARDS |
| 63 | The | 65 | The |
| 64 | .Fn memset | 66 | .Fn memset |
| 65 | function | 67 | function conforms to |
| 66 | conforms to | ||
| 67 | .St -ansiC . | 68 | .St -ansiC . |
| 69 | .Sh HISTORY | ||
| 70 | The | ||
| 71 | .Fn memset | ||
| 72 | function first appeared in | ||
| 73 | .At V | ||
| 74 | and was reimplemented for | ||
| 75 | .Bx 4.3 Tahoe . | ||
