memset()

fill memory block with character 

Function


SYNOPSIS

#include <string.h>

void *memset(void *s, int c, size_t n);


DESCRIPTION

The memset() function operates as efficiently as possible on memory areas. It does not check for overflow of any receiving memory area. Specifically, memset() sets the first n bytes in memory area s to the value of c (converted to an unsigned char). It returns s.


PARAMETERS

s 

Points to the buffer to be set.

c 

Is the value to be set.

n 

Is the number of bytes to be set.


RETURN VALUES

The memset() function returns pointer s1.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
memccpy(), memchr(), memcmp(), memcpy(), memmove()


PTC MKS Toolkit 10.4 Documentation Build 39.