|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
Read environment variables without libc. More...
#include "common/platform/sys/syscall.h"Go to the source code of this file.
Functions | |
| const char * | wired_envp_get (int argc, char **argv, const char *name) |
| Look up name in the environ block following argv. | |
Read environment variables without libc.
wired_main receives only argc/argv, but a freestanding _start passes the kernel's initial stack through unchanged, so per the Linux ABI the NULL-terminated environ block sits right after argv: argv + argc + 1.
| const char * wired_envp_get | ( | int | argc, |
| char ** | argv, | ||
| const char * | name ) |
Look up name in the environ block following argv.
| argc | argument count |
| argv | argument vector; argv[argc] is NULL and the environ block ("NAME=value" strings, NULL-terminated) follows it |
| name | NUL-terminated variable name without '=', e.g. "PROTOCOLS" |