1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#include <stdio.h>
#include "utils.h"
int
main(int argc, char **argv) {
struct env *e = setup_env();
printf("%s\t%d\n", "color", e->color);
printf("%s\t%d\n", "debug", e->debug);
printf("%s\t%d\n", "force", e->force);
printf("%s\t%d\n", "keeplog", e->keeplog);
printf("%s\t%d\n", "prompt", e->prompt);
printf("hooks:\t");
for (int i = 0; e->hooks[i] != NULL; i++)
printf("%s, ", e->hooks[i]);
printf("\n");
printf("kiss_path:\t");
for (int i = 0; e->kiss_path[i] != NULL; i++)
printf("%s, ", e->kiss_path[i]);
printf("\n");
printf("path:\t");
for (int i = 0; e->path[i] != NULL; i++)
printf("%s, ", e->path[i]);
printf("\n");
printf("%s\t%s\n", "compress", e->compress);
printf("%s\t%s\n", "elf", e->elf);
printf("get:\t");
for (int i = 0; e->get[i] != NULL; i++)
printf("%s, ", e->get[i]);
printf("\n");
printf("%s\t%s\n", "pwd", e->pwd);
printf("%s\t%s\n", "root", e->root);
printf("%s\t%s\n", "su", e->su);
printf("%s\t%s\n", "tmpdir", e->tmpdir);
printf("%s\t%s\n", "date", e->date);
printf("%s\t%s\n", "pid", e->pid);
destroy_env(e);
return 0;
}
|