1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Add strtotsv to generally parse signed t_value data (t_svalue).

Allow for explicit Hex, Octal and Binary (0x. 0. 0b) prefix
This commit is contained in:
Mark Pizzolato
2018-04-30 23:03:33 -07:00
parent b4ca9174fd
commit 396679a01a
2 changed files with 110 additions and 11 deletions

1
scp.h
View File

@@ -241,6 +241,7 @@ t_stat sim_decode_quoted_string (const char *iptr, uint8 *optr, uint32 *osize);
char *sim_encode_quoted_string (const uint8 *iptr, uint32 size);
void fprint_buffer_string (FILE *st, const uint8 *buf, uint32 size);
t_value strtotv (CONST char *cptr, CONST char **endptr, uint32 radix);
t_svalue strtotsv (CONST char *inptr, CONST char **endptr, uint32 radix);
int Fprintf (FILE *f, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
/* Use scp.c provided fprintf function */
#define fprintf Fprintf