Changeset 5755:d61e5f9b4111 in roaraudio for libroar


Ignore:
Timestamp:
11/16/12 16:54:46 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_mm_strdup2()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/memmgr.c

    r5602 r5755  
    271271#endif 
    272272 
     273char * roar_mm_strdup2(const char *s, const char *def) { 
     274 if ( s == NULL ) 
     275  s = def; 
     276 if ( s == NULL ) { 
     277  roar_err_clear(); 
     278  return NULL; 
     279 } 
     280 
     281 return roar_mm_strdup(s); 
     282} 
     283 
    273284#ifndef ROAR_HAVE_STRLEN 
    274285ssize_t roar_mm_strlen(const char *s) { 
Note: See TracChangeset for help on using the changeset viewer.