1mlib_malloc(3MLIB)        mediaLib Library Functions        mlib_malloc(3MLIB)
2
3
4

NAME

6       mlib_malloc - allocate a block of bytes
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       void *mlib_malloc(size_t size);
13
14

DESCRIPTION

16       The  mlib_malloc()  function  allocates size bytes on a 16-byte aligned
17       boundary and returns a pointer to the allocated block.
18
19
20       This function is equivalent to memalign(16, size).
21

PARAMETERS

23       The function takes the following arguments:
24
25       size    Size of the block in bytes.
26
27

RETURN VALUES

29       The function returns a pointer to the allocated  block  if  successful.
30       Otherwise it returns a null pointer.
31

ATTRIBUTES

33       See attributes(5) for descriptions of the following attributes:
34
35
36
37
38       ┌─────────────────────────────┬─────────────────────────────┐
39       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
40       ├─────────────────────────────┼─────────────────────────────┤
41       │Interface Stability          │Committed                    │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │MT-Level                     │MT-Safe                      │
44       └─────────────────────────────┴─────────────────────────────┘
45

SEE ALSO

47       mlib_free(3MLIB), mlib_realloc(3MLIB), malloc(3C), attributes(5)
48
49
50
51SunOS 5.11                        12 Sep 2007               mlib_malloc(3MLIB)
Impressum