Changeset 4958:2d8a28f3d87f in roaraudio for libroar/libroar.c


Ignore:
Timestamp:
05/14/11 00:29:58 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added simple memmgr (memory Manager) code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/libroar.c

    r4945 r4958  
    9999} 
    100100 
    101 void * roar_mm_memdup(const void * s, size_t len) { 
    102  void * ret = roar_mm_malloc(len); 
    103  
    104  if ( ret == NULL ) 
    105   return NULL; 
    106  
    107  memcpy(ret, s, len); 
    108  
    109  return ret; 
    110 } 
    111  
    112101int roar_usleep(uint_least32_t t) { 
    113102#ifdef ROAR_TARGET_WIN32 
Note: See TracChangeset for help on using the changeset viewer.