1mlib_memset(3MLIB) mediaLib Library Functions mlib_memset(3MLIB)
2
3
4
6 mlib_memset - set a block of bytes
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 void *mlib_memset(void *s, mlib_s32 c, size_t n);
13
14
16 The mlib_memset() function sets the first n bytes in memory area s to
17 the value of c (converted to an unsigned char). It returns s.
18
19
20 This function is a wrapper of the standard C function memset().
21
23 The function takes the following arguments:
24
25 s Pointer to the destination.
26
27
28 c Value to set.
29
30
31 n Number of bytes to be set.
32
33
35 The function returns a pointer to the destination.
36
38 See attributes(5) for descriptions of the following attributes:
39
40
41
42
43 ┌─────────────────────────────┬─────────────────────────────┐
44 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │Interface Stability │Committed │
47 ├─────────────────────────────┼─────────────────────────────┤
48 │MT-Level │MT-Safe │
49 └─────────────────────────────┴─────────────────────────────┘
50
52 mlib_memcpy(3MLIB), mlib_memmove(3MLIB), memory(3C), attributes(5)
53
54
55
56SunOS 5.11 2 Mar 2007 mlib_memset(3MLIB)