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:
1
scp.h
1
scp.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user