Why is strlen() not checking for NULL?
strlen()
if I do strlen(NULL), the program segmentation faults.
strlen(NULL)
Trying to understand the rationale be
size_t strlen ( const char * str );
http://www.cplusplus.com/reference/clibrary/cstring/strlen/
Strlen takes a pointer to a character array as a parameter, null is not a valid argument to this function.