mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / commonlib / bsd / string.c
blob3286d41b1cfa88a269e27fe5219b312a9bc37b38
1 /* SPDX-License-Identifier: BSD-3-Clause */
3 #include <commonlib/bsd/string.h>
4 #include <ctype.h>
6 unsigned int skip_atoi(char **ptr)
8 unsigned int result = 0;
9 char *str;
11 for (str = *ptr; isdigit(str[0]); str++)
12 result = result * 10 + (str[0] - '0');
13 *ptr = str;
14 return result;