man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_memset(3MLIB)

Name

mlib_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 also

mlib_memcpy(3MLIB), mlib_memmove(3MLIB), memory(3C), attributes(5)