zephyr/lib/libc/minimal/source/stdlib
Flavio Ceolin 4218d5f8f0 kernel: Make If statement have essentially Boolean type
Make if statement using pointers explicitly check whether the value is
NULL or not.

The C standard does not say that the null pointer is the same as the
pointer to memory address 0 and because of this is a good practice
always compare with the macro NULL.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2018-09-18 13:57:15 -04:00
..
atoi.c libc: atoi() avoid fallthroughs in switch cases 2016-11-16 22:05:53 +00:00
malloc.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
strtol.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
strtoul.c kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00