mlib_memset(3MLIB) mediaLib Library Functions mlib_memset(3MLIB)NAMEmlib_memset - set a block of bytes
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
void *mlib_memset(void *s, mlib_s32 c, size_t n);
DESCRIPTION
The mlib_memset() function sets the first n bytes in memory area s to
the value of c (converted to an unsigned char). It returns s.
This function is a wrapper of the standard C function memset().
PARAMETERS
The function takes the following arguments:
s Pointer to the destination.
c Value to set.
n Number of bytes to be set.
RETURN VALUES
The function returns a pointer to the destination.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOmlib_memcpy(3MLIB), mlib_memmove(3MLIB), memory(3C), attributes(5)SunOS 5.10 2 Mar 2007 mlib_memset(3MLIB)