1*1b191cb5SApple OSS Distributions /* 2*1b191cb5SApple OSS Distributions * Simple program to dump the apple array contents to stdout for verification. 3*1b191cb5SApple OSS Distributions * Note that libsystem mucks with some of the fields before we can see them. 4*1b191cb5SApple OSS Distributions */ 5*1b191cb5SApple OSS Distributions 6*1b191cb5SApple OSS Distributions #include <stdio.h> 7*1b191cb5SApple OSS Distributions #include <stdbool.h> 8*1b191cb5SApple OSS Distributions 9*1b191cb5SApple OSS Distributions int main(__unused int argc,__unused char ** argv,__unused char ** environ,char ** apple)10*1b191cb5SApple OSS Distributionsmain( 11*1b191cb5SApple OSS Distributions __unused int argc, 12*1b191cb5SApple OSS Distributions __unused char **argv, 13*1b191cb5SApple OSS Distributions __unused char **environ, 14*1b191cb5SApple OSS Distributions char **apple) 15*1b191cb5SApple OSS Distributions { 16*1b191cb5SApple OSS Distributions int i = 0; 17*1b191cb5SApple OSS Distributions while (true) { 18*1b191cb5SApple OSS Distributions char *curr = apple[i]; 19*1b191cb5SApple OSS Distributions if (curr == NULL) { 20*1b191cb5SApple OSS Distributions break; 21*1b191cb5SApple OSS Distributions } else { 22*1b191cb5SApple OSS Distributions printf("%s\n", curr); 23*1b191cb5SApple OSS Distributions } 24*1b191cb5SApple OSS Distributions i++; 25*1b191cb5SApple OSS Distributions } 26*1b191cb5SApple OSS Distributions return 0; 27*1b191cb5SApple OSS Distributions } 28