mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-23 12:39:55 +00:00
28 lines
450 B
C
28 lines
450 B
C
/*
|
|
* Simple program to dump the apple array contents to stdout for verification.
|
|
* Note that libsystem mucks with some of the fields before we can see them.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
|
|
int
|
|
main(
|
|
__unused int argc,
|
|
__unused char **argv,
|
|
__unused char **environ,
|
|
char **apple)
|
|
{
|
|
int i = 0;
|
|
while (true) {
|
|
char *curr = apple[i];
|
|
if (curr == NULL) {
|
|
break;
|
|
} else {
|
|
printf("%s\n", curr);
|
|
}
|
|
i++;
|
|
}
|
|
return 0;
|
|
}
|