X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fscanstrbuf.h;h=29002052e2468b4bee5c96af147d36e32ce3219b;hb=f7dfcbcc3daf8426770842b5e6ed3634e0d50c82;hp=9bd971441590ebcdef86cc680bad8fe5de9a62bf;hpb=ea50befaac9228edb2bab7f0bbf41881b4abc925;p=cc65 diff --git a/src/cc65/scanstrbuf.h b/src/cc65/scanstrbuf.h index 9bd971441..29002052e 100644 --- a/src/cc65/scanstrbuf.h +++ b/src/cc65/scanstrbuf.h @@ -63,6 +63,12 @@ int SB_GetString (StrBuf* B, StrBuf* S); * returns 1 if a string was found and 0 otherwise. */ +int SB_GetNumber (StrBuf* B, long* Val); +/* Get a number from the string buffer. Accepted formats are decimal, octal, + * hex and character constants. Numeric constants may be preceeded by a + * minus or plus sign. The function returns 1 if a number was found and + * zero otherwise. + */