1 2 3 4 5 6 7 8 9
[strdup] fp: libc/str/strdup include: string.h if: !(defined strdup) prep: char *dup, *s = "test string\n"; call: dup = strdup(s); success_cond: strcmp(s, dup) == 0 failure_cond: dup == NULL errno_on_fail: ENOMEM