strlen not checking for NULL

后端 未结 6 1229
小蘑菇
小蘑菇 2020-12-01 07:52

Why is strlen() not checking for NULL?

if I do strlen(NULL), the program segmentation faults.

Trying to understand the rationale be

6条回答
提交回复
热议问题