BeBOP: pOSKI  v1.0.0
parallel Optimized Sparse Kernel Interface library
 All Files Functions Variables
Functions
poski_Malloc.c File Reference

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>

Functions

void poski_ZeroMem (void *buf, size_t num_bytes)
 Initialize buffer with zeros.
char * poski_DuplicateString (const char *s)

Detailed Description

Customized memory allocation routines in the pOSKI library.


Function Documentation

void poski_ZeroMem ( void *  buf,
size_t  num_bytes 
)

Initialize buffer with zeros.

Parameters:
[in,out]bufBuffer to zero out.
[in]num_bytesNumber of bytes to clear.
char* poski_DuplicateString ( const char *  s)
Parameters:
[in]sString 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.