1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61193Sbostic.\" The Regents of the University of California. 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*61193Sbostic.\" @(#)memset.3 8.1 (Berkeley) 06/04/93 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 . 3255078Sbostic.Sh RETURNS 3355078SbosticThe 3455078Sbostic.Fn memset 3555078Sbosticfunction 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