openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/base-passwd/3.5.29-r0/base-passwd-3.5.29/update-passwd.c
char* xstrdup(const char* string)
{
    if (!string)
        return NULL;
    return strcpy(xmalloc(strlen(string) + 1), string);
}
/* Copy a string with out-of-memory checking.
 */
Copy a string with out-of-memory checking.
Copy a string with out - of - memory checking .
char* xstrdup(const char* string)
{
    if (!string)
        return NULL;
    return strcpy(xmalloc(strlen(string) + 1), string);
}
char * xstrdup ( const char * string ) { if ( ! string ) return NULL ; return strcpy ( xmalloc ( strlen ( string ) + 1 ) , string ) ; }
Copy a string with out-of-memory checking.
Copy a string with out - of - memory checking .