.\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek. .\" %sccs.include.redist.man% .\" .\" @(#)memset.3 5.3 (Berkeley) 04/19/91 .\" .Dd .Dt MEMSET 3 .Os .Sh NAME .Nm memset .Nd write a byte to byte string .Sh SYNOPSIS .Fd #include .Ft void * .Fn memset "void *b" "int c" "size_t len" .Sh DESCRIPTION The .Fn memset function writes .Fa len bytes of value .Fa c (converted to an unsigned char) to the string .Fa b . .Sh SEE ALSO .Xr bzero 3 , .Xr swab 3 .Sh STANDARDS The .Fn memset function conforms to .St -ansiC .