Return Codes most things have a return code for a reason check it, always, and act! just bailing out most of the time err(3) is your friend char *foo = malloc(BUFSIZ); /* and if it fails? */ strlcpy(foo, "hello world", sizeof(*foo)); /* kaboom */