extern char *strdup(const char *s); void foo(const char *bar) { char *a = strdup(bar); }