manpagez: man (manual) pages & more
man memset(3)
Home | html | info | man
memset(3)                BSD Library Functions Manual                memset(3)


NAME

     memset -- fill a byte string with a byte value


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <string.h>

     void *
     memset(void *b, int c, size_t len);


DESCRIPTION

     The memset() function writes len bytes of value c (converted to an
     unsigned char) to the string b.


RETURN VALUES

     The memset() function returns its first argument.


SEE ALSO

     bzero(3), memset_pattern(3), memset_s.3, swab(3), wmemset(3)


STANDARDS

     The memset() function conforms to ISO/IEC 9899:1990 (``ISO C90'').

BSD                              June 4, 1993                              BSD

Mac OS X 10.9.1 - Generated Wed Jan 8 20:33:44 CST 2014