console: Move poor-man's atoi() into string.h
commit66c77c2dc9b16d3b3522697ea04009aad1c8ba79
authorJulius Werner <jwerner@chromium.org>
Tue, 14 May 2019 00:45:27 +0000 (13 17:45 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 23 May 2019 08:43:12 +0000 (23 08:43 +0000)
treead10231da105645e9002a9d5b11bd1e855f18e22
parent2b6da7f326bf84a8eab3684edf5e5814e9c23385
console: Move poor-man's atoi() into string.h

vtxprintf.c seems to have been written before string.h was as fleshed
out as it is today -- this patch removes some custom implementation of
stuff we now have globally. It also makes the skip_atoi() function
globally available, because I need it somewhere else, and while we maybe
don't want a huge fully-featured string parsing library in coreboot,
being able to parse an integer is occasionally useful.

Change-Id: Iecb2b970aecfc768540d2bf8b3023445f54853a4
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32858
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
src/console/vtxprintf.c
src/include/string.h