Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
23 lines
396 B
C
23 lines
396 B
C
#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char **argv, char **envp) {
|
|
for (char **env = envp; *env != 0; ++env) {
|
|
puts(*env);
|
|
}
|
|
|
|
char cwd[PATH_MAX];
|
|
if (getcwd(cwd, sizeof(cwd))) {
|
|
printf("CWD=%s\n", cwd);
|
|
} else {
|
|
perror("getcwd() error");
|
|
return 1;
|
|
}
|
|
|
|
for (int i=0; i < argc; ++i) {
|
|
puts(argv[i]);
|
|
}
|
|
return 0;
|
|
}
|