148351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California. 241962Sbostic.\" All rights reserved. 341962Sbostic.\" 441962Sbostic.\" This code is derived from software contributed to Berkeley by 550312Sbostic.\" Chris Torek and the American National Standards Committee X3, 650312Sbostic.\" on Information Processing Systems. 750312Sbostic.\" 841962Sbostic.\" %sccs.include.redist.man% 941962Sbostic.\" 10*55078Sbostic.\" @(#)memset.3 5.5 (Berkeley) 07/12/92 1141962Sbostic.\" 1248351Scael.Dd 1348351Scael.Dt MEMSET 3 1448351Scael.Os 1548351Scael.Sh NAME 1648351Scael.Nm memset 1748351Scael.Nd write a byte to byte string 1848351Scael.Sh SYNOPSIS 1948351Scael.Fd #include <string.h> 2048351Scael.Ft void * 2148351Scael.Fn memset "void *b" "int c" "size_t len" 2248351Scael.Sh DESCRIPTION 2348351ScaelThe 2448351Scael.Fn memset 2548351Scaelfunction 2641962Sbosticwrites 2748351Scael.Fa len 2841962Sbosticbytes of value 2948351Scael.Fa c 3041962Sbostic(converted to an unsigned char) to the string 3148351Scael.Fa b . 32*55078Sbostic.Sh RETURNS 33*55078SbosticThe 34*55078Sbostic.Fn memset 35*55078Sbosticfunction returns its first argument. 3648351Scael.Sh SEE ALSO 3748351Scael.Xr bzero 3 , 3848351Scael.Xr swab 3 3948351Scael.Sh STANDARDS 4048351ScaelThe 4148351Scael.Fn memset 4248351Scaelfunction 4348351Scaelconforms to 4448351Scael.St -ansiC . 45