From a32b1e9e3557393d60fb4805cd74d8ba357b66cb Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 19 Feb 2015 16:00:01 +0000 Subject: [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 --- src/include/ipxe/string.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/include/ipxe/string.h (limited to 'src/include/ipxe/string.h') 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 */ -- cgit v1.2.3-55-g7522