]> git.sur5r.net Git - cc65/blobdiff - src/cc65/scanstrbuf.h
Fixed a bug
[cc65] / src / cc65 / scanstrbuf.h
index 9bd971441590ebcdef86cc680bad8fe5de9a62bf..29002052e2468b4bee5c96af147d36e32ce3219b 100644 (file)
@@ -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.
+ */