mlib_realloc - reallocate a block of bytes
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> void *mlib_realloc(void *ptr, size_t size);
The mlib_realloc() function changes the size of the block pointed to by ptr to size bytes and returns a pointer to the (possibly moved) block.
This function is a wrapper of the standard C function realloc().
The function takes the following arguments:
size
ptr
The function returns a pointer to the reallocated block if successful. Otherwise it returns a null pointer.
See attributes(5) for descriptions of the following attributes:
|
mlib_free(3MLIB), mlib_malloc(3MLIB), malloc(3C), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |