mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
6d3e12899b
Get rid of the convoluted get_arguments and get_environment syscalls. This patch also adds a simple /bin/env that just prints its environment.
10 lines
156 B
C++
10 lines
156 B
C++
#include <unistd.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int, char**)
|
|
{
|
|
for (size_t i = 0; environ[i]; ++i)
|
|
printf("%s\n", environ[i]);
|
|
return 0;
|
|
}
|