[lib] Add more libc impls

Adding isdigit, isspace, atoi, and strchr. Used in cmdline parsing.
Add NULL definitions to header files that the C standard says should
define it.

Change-Id: Id29076e0e799ea6ae121dc91dbd4b8c38f54580c
8 files changed