Changeset 5755:d61e5f9b4111 in roaraudio
- Timestamp:
- 11/16/12 16:54:46 (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/memmgr.h
r5602 r5755 130 130 #endif 131 131 132 char * roar_mm_strdup2(const char *s, const char *def); 133 132 134 #if defined(ROAR_USE_MEMMGR) || !defined(ROAR_HAVE_STRNDUP) 133 135 char *roar_mm_strndup(const char *s, size_t n); -
include/libroar/roarfeatures.h
r5619 r5755 53 53 #define ROAR_FT_FUNC_CTL_C2M2 54 54 #define ROAR_FT_FUNC_CTL_M2C2 55 #define ROAR_FT_FUNC_MM_STRDUP2 55 56 #define ROAR_FT_FEATURE_VS 56 57 #define ROAR_FT_FEATURE_VS_FILE -
libroar/memmgr.c
r5602 r5755 271 271 #endif 272 272 273 char * 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 273 284 #ifndef ROAR_HAVE_STRLEN 274 285 ssize_t roar_mm_strlen(const char *s) {
Note: See TracChangeset
for help on using the changeset viewer.