Return to strdup.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / sntp / libopts / compat |
ntp 4.2.6p5
/* * Platforms without strdup ?!?!?! */ static char * strdup( char const *s ) { char *cp; if (s == NULL) return NULL; cp = (char *) AGALOC((unsigned) (strlen(s)+1), "strdup"); if (cp != NULL) (void) strcpy(cp, s); return cp; }