The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

memset - set bytes in memory

 SYNOPSIS



#include <string.h>

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

 DESCRIPTION

The memset() function copies c (converted to an unsigned char) into each of the first n bytes of the object pointed to by s.

 RETURN VALUE

The memset() function returns s; no return value is reserved to indicate an error.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 SEE ALSO

<string.h>.

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]