1mlib_realloc(3MLIB) mediaLib Library Functions mlib_realloc(3MLIB)
2
3
4
6 mlib_realloc - reallocate a block of bytes
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 void *mlib_realloc(void *ptr, size_t size);
13
14
16 The mlib_realloc() function changes the size of the block pointed to by
17 ptr to size bytes and returns a pointer to the (possibly moved) block.
18
19
20 This function is a wrapper of the standard C function realloc().
21
23 The function takes the following arguments:
24
25 size New size of the block in bytes.
26
27
28 ptr Pointer to a block.
29
30
32 The function returns a pointer to the reallocated block if successful.
33 Otherwise it returns a null pointer.
34
36 See attributes(5) for descriptions of the following attributes:
37
38
39
40
41 ┌─────────────────────────────┬─────────────────────────────┐
42 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │Interface Stability │Committed │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │MT-Level │MT-Safe │
47 └─────────────────────────────┴─────────────────────────────┘
48
50 mlib_free(3MLIB), mlib_malloc(3MLIB), malloc(3C), attributes(5)
51
52
53
54SunOS 5.11 2 Mar 2007 mlib_realloc(3MLIB)