#include <string.h>void *memset(void *buf, int ch, size_t count);

The memset( ) function copies the low-order byte of ch into the first count characters of the array pointed to by buf. It returns buf.

The most common use of memset( ) is to initialize a region of memory to some known value.

Related functions are memcmp( ), memcpy( ), and memmove( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: