tools/nolibc/string: add strcmp() and strncmp()
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Mar 2022 17:33:10 +0000 (18:33 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:45 +0000 (17:05 -0700)
commit0e7b492943ec8cfdc7fffd9304d496315f781ea7
tree827a64796b348b5966f31f4626cc0a343743920a
parentbd845a193aae4b99da5215fcfff0e9014b9f7b96
tools/nolibc/string: add strcmp() and strncmp()

We need these functions all the time, including when checking environment
variables and parsing command-line arguments. These implementations were
optimized to show optimal code size on a wide range of compilers (22 bytes
return included for strcmp(), 33 for strncmp()).

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/string.h