cirosantilli/cpp-cheat

str2int_errno str2int(int *out, char *s, int base) s cannot be NULL

Opened this issue · 1 comments

str2int_errno str2int(int *out, char *s, int base) should check s against NULL value first

I think I'd rather just let end users blow themselves up on UB if they break the API to avoid the overhead of an if :-)