In this case I'm trying to understand the difference between this wrong strdup
and the good one.
char *wrong_strdup(char *str) {
char *dest;
dest = str;
return (dest);
}
In this case I'm trying to understand the difference between this wrong strdup
and the good one.
char *wrong_strdup(char *str) {
char *dest;
dest = str;
return (dest);
}