|
HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
Go to the documentation of this file.
25 #include "user_config.h"
44 int sscanf(
const char *strp,
const char *fmt, ...)
59 while ( (spec = *fmt++) )
88 while ( (ch = *strp) )
90 if(ch ==
'\t' || ch ==
' ' || ch ==
',')
100 while( (spec = *fmt) )
102 if(!(spec >=
'0' && spec <=
'9'))
109 width += (spec -
'0');
141 c = va_arg(ap,
unsigned char *);
150 p = va_arg(ap,
unsigned char *);
154 if (!c || c ==
' ' || c ==
'\t')
194 SIZE =
sizeof(double);
219 while (width && (ch = *strp))
251 if(SIZE ==
sizeof(
long))
254 c = va_arg(ap,
unsigned long *);
256 *c = (
unsigned long) -num;
258 *c = (
unsigned long) num;
260 else if(SIZE ==
sizeof(
int))
263 c = va_arg(ap,
unsigned int *);
265 *c = (
unsigned int) -num;
267 *c = (
unsigned int) num;
272 c = va_arg(ap,uint8_t *);
274 *c = (
unsigned char) -num;
276 *c = (
unsigned char) num;
279 else if(SIZE =
sizeof(
double))
282 double *d = va_arg(ap,
double *);
292 strp += (endp - ptr);
298 #endif // ifdef SMALL_SSCANF
MEMSPACE double strtod(const char *nptr, char **endptr)
MEMSPACE char * stralloc(char *str)
Allocate space for string.
MEMSPACE size_t WEAK_ATR strlen(const char *str)
String Length.
int sscanf(const char *strp, const char *fmt,...)
Math IO functions, and verious conversion code with floating point support.