mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
16 lines
284 B
C
16 lines
284 B
C
/* https://cirosantilli.com/linux-kernel-module-cheat#environment-variables */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
extern char **environ;
|
|
|
|
int main(void) {
|
|
char **env = environ;
|
|
while (*env) {
|
|
printf("%s\n", *env);
|
|
env++;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|