.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:49:23 1993 by Rik Faith (faith@cs.unc.edu) .TH MEMSET 3 "April 11, 1993" "GNU" "Linux Programmer's Manual" .SH NAME memset \- fill memory with a constant byte .SH SYNOPSIS .nf .B #include .sp .BI "void *memset(void *" s ", int " c ", size_t " n ); .fi .SH DESCRIPTION The \fBmemset()\fP function fills the first \fIn\fP bytes of the memory area pointed to be \fIs\fP with the constant byte \fIc\fP. .SH "RETURN VALUE" The \fBmemset()\fP function returns a pointer to the memory area \fIs\fP. .SH "CONFORMING TO" SVID 3, BSD 4.3, ISO 9899 .SH SEE ALSO .BR bzero "(3), " swab (3)