diff options
| author | Michael Brown | 2015-02-19 17:00:01 +0100 |
|---|---|---|
| committer | Michael Brown | 2015-02-19 17:00:01 +0100 |
| commit | a32b1e9e3557393d60fb4805cd74d8ba357b66cb (patch) | |
| tree | acd24bea0b4b0fc300d9b2d613dab573ca49b21f /src/include/ipxe | |
| parent | [ipv4] Rewrite inet_aton() (diff) | |
| download | ipxe-a32b1e9e3557393d60fb4805cd74d8ba357b66cb.tar.gz ipxe-a32b1e9e3557393d60fb4805cd74d8ba357b66cb.tar.xz ipxe-a32b1e9e3557393d60fb4805cd74d8ba357b66cb.zip | |
[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')
| -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 */ |
