R
rudra
i want to use system bit as a input of my c program. i wrote a code:
#include <stdio.h>
//#include <stdlib.h>
main()
{
unsigned sys;
unsigned i686;
// int i386;
sys=system("/bin/uname -m");
printf ("%u",sys);
if (sys = i686) printf("the syst. 32 bit\n");
else printf("64bit\n");
}
but its not quite working.
can you people plz help me?
#include <stdio.h>
//#include <stdlib.h>
main()
{
unsigned sys;
unsigned i686;
// int i386;
sys=system("/bin/uname -m");
printf ("%u",sys);
if (sys = i686) printf("the syst. 32 bit\n");
else printf("64bit\n");
}
but its not quite working.
can you people plz help me?