Add sexp_read_atom()
This commit is contained in:
parent
20ef8dfd46
commit
23cb773630
4
sexpio.c
4
sexpio.c
|
@ -55,6 +55,10 @@ static sexp_t *read_simple_string(IOHandle *h, cmsg_bytes_t buf) {
|
|||
}
|
||||
}
|
||||
|
||||
sexp_t *sexp_read_atom(IOHandle *h) {
|
||||
return read_simple_string(h, EMPTY_BYTES);
|
||||
}
|
||||
|
||||
#define CHECKH \
|
||||
if (h->error_kind) goto error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue