aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/string.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-02-19 16:00:01 +0000
committerMichael Brown <mcb30@ipxe.org>2015-02-19 16:00:01 +0000
commita32b1e9e3557393d60fb4805cd74d8ba357b66cb (patch)
treeacd24bea0b4b0fc300d9b2d613dab573ca49b21f /src/include/ipxe/string.h
parentbb1abb2b213adceb606ff458e3786c8c2ea4dc8a (diff)
downloadipxe-a32b1e9e3557393d60fb4805cd74d8ba357b66cb.tar.gz
[libc] Rewrite strtoul()
The implementation of strtoul() has a partially unknown provenance. Rewrite this code to avoid potential licensing uncertainty. Since we now use -ffunction-sections, there is no need to place strtoull() in a separate file from strtoul(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/string.h')
-rw-r--r--src/include/ipxe/string.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/ipxe/string.h b/src/include/ipxe/string.h
new file mode 100644
index 000000000..954c7f16b
--- /dev/null
+++ b/src/include/ipxe/string.h
@@ -0,0 +1,14 @@
+#ifndef _IPXE_STRING_H
+#define _IPXE_STRING_H
+
+/** @file
+ *
+ * String functions
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+extern unsigned int digit_value ( unsigned int digit );
+
+#endif /* _IPXE_STRING_H */