memcpy.h File Reference


Detailed Description

Macros for typed block memory copy operations.

#include <string.h>

Go to the source code of this file.

Defines

#define INC_OSKI_MEMCPY_H
 oski/memcpy.h included.
#define oski_CopyMem(dest, src, elem_type, num_elems)
 Copy a typed block of consecutive memory elements from one buffer to another.

Functions

char * oski_DuplicateString (const char *s)
 Returns a newly allocated copy of the NULL-terminated string 's'.


Define Documentation

#define oski_CopyMem dest,
src,
elem_type,
num_elems   ) 
 

Value:

memcpy((void *)(dest), (const void *)(src), \
        (num_elems) * sizeof(elem_type))
Copy a typed block of consecutive memory elements from one buffer to another.

This implementation is simply a wrapper around memcpy.

Parameters:
[out] dest Buffer into which to copy.
[in] src Buffer from which to copy.
[in] num_elems Integer number of logical elements.
[in] elem_type Type of each logical element.
Returns:
A typed pointer to the destination buffer.


Function Documentation

char* oski_DuplicateString const char *  s  ) 
 

Returns a newly allocated copy of the NULL-terminated string 's'.

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.


Generated on Wed Sep 19 16:41:22 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6