Hi dev team, Would be good to have strdup in pkg_ style and use our memory manager, something like this (or using macroses):
char *pkg_strdup(const char *s) {
char *p = pkg_malloc(strlen(s) + 1);
if(p) { strcpy(p, s); }
return p;
}
_______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
