dos_compilers/Microsoft C v3/DEMO.C

25 lines
419 B
C++
Raw Normal View History

2024-07-01 14:49:38 +02:00
main(argc, argv, envp)
int argc;
char **argv;
char **envp;
{
register char **p;
/* print out the argument list for this program */
for (p = argv; argc > 0; argc--,p++) {
printf("%s\n", *p);
}
/* print out the current environment settings. Note that
* the environment table is terminated by a NULL entry
*/
for (p = envp; *p; p++) {
printf("%s\n", *p);
}
exit(0);
}