Add strncmp(), strtol() and strtoul() functions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | string: add freebds libc implementation of strtol()build/ common/ include/ | +138 | 0 replies | |
| 2/4 | libc, strtol: Add isspace(), isdigit(), isxdigit(), isascii()common/ common/ common/ +1 more | +32 | 0 replies | |
| 3/4 | libc, strtol: Add FreeBSD libc implementation of strtoul()common/ include/ | +70 | 0 replies | |
| 4/4 | libc: add strncmp() functioncommon/ include/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [XTF 0/4] Add strncmp(), strtol() and strtoul() functions
Add FreeBSD's implementation of strtol() and strtoul() functions from:
https://github.com/freebsd/freebsd/blob/master/lib/libc/stdlib/strtoul.c
The FreeBSD code being added as a separate file (common/libc/strtol.c) is under the BSD 3-clause license. Modification to COPYING file might be needed.
Also add simple implementation of the strncmp() function.
Paul Semel (1):
string: add freebds libc implementation of strtol()
Pawel Wieczorkiewicz (3):
libc, strtol: Add isspace(), isdigit(), isxdigit(), isascii() libc, strtol: Add FreeBSD libc implementation of strtoul()
libc: add strncmp() function
build/files.mk | 1 + common/lib.c | 8 -- common/libc/string.c | 11 +++ common/libc/strtol.c | 201 ++++++++++++++++++++++++++++++++++++++++++++++++ common/libc/vsnprintf.c | 8 -- include/xtf/libc.h | 35 +++++++++ 6 files changed, 248 insertions(+), 16 deletions(-) create mode 100644 common/libc/strtol.c
Signature · 12 lines
2.16.6 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879