genode/repos/libports/src/lib/lwip/include/stdlib.h
Emery Hemingway bf8b52ec3a Update LwIP to 2.1.0.rc1
This release candidate suppresses the remaining build warnings.

Ref #2335
2018-08-02 14:36:49 +02:00

16 lines
242 B
C

#ifndef _LWIP__INCLUDE__STDLIB_H_
#define _LWIP__INCLUDE__STDLIB_H_
/**
* Simple atoi for LwIP purposes
*/
static inline int atoi(char const *s)
{
int n = 0;
while ('0' <= *s && *s <= '9')
n = 10*n - (*s++ - '0');
return n;
}
#endif