My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
sw_mem_functions.h File Reference
#include <sw_types.h>

Go to the source code of this file.

Functions

void sw_malloc_init (void)
 Initial Memory Allocation Heap also initialized. More...
 
void * sw_memmove (void *dest, const void *src, u32 count)
 memory move More...
 
void * sw_memset (void *dest, u32 c, u32 count)
 memory set More...
 
void * sw_memcpy (void *dst, const void *src, unsigned long count)
 This version of memcpy assumes disjoint ptrs src, dst. More...
 
int sw_memcmp (void *src, void *dest, unsigned long length)
 custom version of memcmp function More...
 
void * sw_memncpy (void *dst, const void *src, u32 count, u32 dstLen, u32 srcLen)
 Copies the values of Num bytes from the location pointed by source directly to the memory block pointed by destination By checking the values of Num bytes with destination and source Maximum Length. More...
 

Function Documentation

void sw_malloc_init ( void  )

Initial Memory Allocation Heap also initialized.

int sw_memcmp ( void *  src,
void *  dest,
unsigned long  length 
)

custom version of memcmp function

Parameters
src
dest
length
Returns
void* sw_memcpy ( void *  dst,
const void *  src,
unsigned long  count 
)

This version of memcpy assumes disjoint ptrs src, dst.

Parameters
dst
src
count
Returns
void* sw_memmove ( void *  dest,
const void *  src,
u32  count 
)

memory move

Parameters
dest
src
count
Returns
void* sw_memncpy ( void *  dst,
const void *  src,
u32  count,
u32  dstLen,
u32  srcLen 
)

Copies the values of Num bytes from the location pointed by source directly to the memory block pointed by destination By checking the values of Num bytes with destination and source Maximum Length.

Parameters
dst- Pointer to the destination array where the content is to be copied
src- Pointer to the source of data to be copied
count- Number of bytes to copy
dstLen- destination Maximum Length
srcLen- source Maximum Length
Returns
void* sw_memset ( void *  dest,
u32  c,
u32  count 
)

memory set

Parameters
dest
c
count
Returns