Customized memory allocation routines in the pOSKI library.
More...
#include <stdio.h>
#include <stdlib.h>
#include <poski/poski_config.h>
#include <poski/poski_malloc.h>
Detailed Description
Customized memory allocation routines in the pOSKI library.
Function Documentation
Initialize buffer with zeros.
- Parameters:
-
[in,out] | buf | Buffer to zero out. |
[in] | num_bytes | Number of bytes to clear. |
- Parameters:
-
[in] | s | String to duplicate. |
- Returns:
- A pointer to a newly allocated buffer containing a copy of the input string, s. If s == NULL, returns NULL. If an error occurs, returns NULL but does not call the error handler.