tools/nolibc/stdlib: add a simple getenv() implementation
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Mar 2022 17:33:08 +0000 (18:33 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:45 +0000 (17:05 -0700)
commit077d0a392446981cde2e8dd23090140bdd9fb728
tree5c30aa3ed1cdb95620b503a7a1211cd9f2cc69c4
parent170b230d22e89681ebca1a3d972dca441c8e4be5
tools/nolibc/stdlib: add a simple getenv() implementation

This implementation relies on an extern definition of the environ
variable, that the caller must declare and initialize from envp.

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