summaryrefslogtreecommitdiff
path: root/stage3/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/string.h')
-rw-r--r--stage3/string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stage3/string.h b/stage3/string.h
index 1a28494..c5ceabe 100644
--- a/stage3/string.h
+++ b/stage3/string.h
@@ -17,6 +17,10 @@ usize str_find(str s, str tokens);
// resulting number is stored in *x
usize str_parse_num(str s, u8 base, u64 *x);
+// parses a double and returns number of chars processed
+// resulting number is stored in *x
+usize str_parse_dbl(str s, double *x);
+
// this is a splitting function
// returns the next non-empty substring of *s that is delimited by the tokens in sep
// the returned string does not contain any of the separators