diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-02-19 16:00:01 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-02-19 16:00:01 +0000 |
commit | a32b1e9e3557393d60fb4805cd74d8ba357b66cb (patch) | |
tree | acd24bea0b4b0fc300d9b2d613dab573ca49b21f /src/include/ipxe/string.h | |
parent | bb1abb2b213adceb606ff458e3786c8c2ea4dc8a (diff) | |
download | ipxe-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.h | 14 |
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 */ |