I don't think so. If it could, then this code would reliably crash:
char *mystr = strdup (oldstr); if (mystr) *mystr = 0; // Truncate string