aboutsummaryrefslogtreecommitdiff
path: root/include/base/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base/string.h')
-rw-r--r--include/base/string.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/base/string.h b/include/base/string.h
index 238ebf9..a59c553 100644
--- a/include/base/string.h
+++ b/include/base/string.h
@@ -29,9 +29,15 @@ int str·compare(char *, char *);
int str·ncompare(char *, intptr len, char *);
int str·ecompare(char *, char *end, char *);
-int str·atoi(char *s);
+/* old school interfaces (no error checking) */
+long str·atoi(char *s);
+double str·atof(char *s);
char *str·itoa(char *s, int x);
+/* nicer */
+vlong str·asint(char *s, char **end);
+double str·asfloat(char *s, char **end);
+
/* augmented string functions */
string string·makecap(char *s, vlong len, vlong cap);
string string·makelen(char *s, vlong len);