44 int sscanf(
const char *strp,
const char *fmt, ...)
59 while ( (spec = *fmt++) )
90 while ( (ch = *strp) ) {
91 if(ch ==
'\t' || ch ==
' ' || ch ==
',') {
100 while( (spec = *fmt) ) {
101 if(!(spec >=
'0' && spec <=
'9'))
108 width += (spec -
'0');
138 c = va_arg(ap,
unsigned char *);
147 p = va_arg(ap,
unsigned char *);
151 if (!c || c ==
' ' || c ==
'\t')
191 SIZE =
sizeof(double);
215 while (width && (ch = *strp)) {
244 if(SIZE ==
sizeof(
long)) {
246 c = va_arg(ap,
unsigned long *);
248 *c = (
unsigned long) -num;
250 *c = (
unsigned long) num;
252 else if(SIZE ==
sizeof(
int)) {
254 c = va_arg(ap,
unsigned int *);
256 *c = (
unsigned int) -num;
258 *c = (
unsigned int) num;
264 *c = (
unsigned char) -num;
266 *c = (
unsigned char) num;
269 else if(SIZE =
sizeof(
double))
272 double *d = va_arg(ap,
double *);
282 strp += (endp - ptr);
289 #endif // ifdef SMALL_SSCANF MEMSPACE size_t WEAK_ATR strlen(const char *str)
String Length.
Master include file for project Includes all project includes and defines here.
MEMSPACE double strtod(const char *nptr, char **endptr)
MEMSPACE void free(void *p)
Free buffer POSIX function We only call os_free() is pointer is not null.
Math IO functions, and verious conversion code with floating point support.
int sscanf(const char *strp, const char *fmt,...)
MEMSPACE char * stralloc(char *str)
Allocate space for string.