1.\" Copyright (c) 1990, 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek. 6.\" %sccs.include.redist.man% 7.\" 8.\" @(#)memset.3 5.3 (Berkeley) 04/19/91 9.\" 10.Dd 11.Dt MEMSET 3 12.Os 13.Sh NAME 14.Nm memset 15.Nd write a byte to byte string 16.Sh SYNOPSIS 17.Fd #include <string.h> 18.Ft void * 19.Fn memset "void *b" "int c" "size_t len" 20.Sh DESCRIPTION 21The 22.Fn memset 23function 24writes 25.Fa len 26bytes of value 27.Fa c 28(converted to an unsigned char) to the string 29.Fa b . 30.Sh SEE ALSO 31.Xr bzero 3 , 32.Xr swab 3 33.Sh STANDARDS 34The 35.Fn memset 36function 37conforms to 38.St -ansiC . 39