jackall
October 21st, 2010, 13:15
what is a start function..!
why is it essential..!
could you please tell me why ‘am not able to compile this code , lifted from kaspersky book..!?
thank you..!
why is it essential..!
could you please tell me why ‘am not able to compile this code , lifted from kaspersky book..!?
Code:
#include <stdio.h>
#include <stdlib.h>
void main()
{
int a;
printf(">OS Version:\t\t\t%d.%d\n\
>Build:\t\t\t%d\n\
>Number of arguments:\t%d\n,"\
_winmajor, _winminor, _osver, __argc);
for (a=0; a < __argc; a++)
printf(">\tArgument %02d:\t\t%s\n", a+1, __argv[a]);
a = !a - 1;
while(_environ[++a]) ;
printf(">Number of environment variables:%d\n", a);
while(a) printf(">\tVariable %d:\t\t%s\n",
a, _environ[--a]);
}
thank you..!