system call as variabe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rudra

    system call as variabe

    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?
  • Ian Collins

    #2
    Re: system call as variabe

    rudra wrote:
    i want to use system bit as a input of my c program.
    We know, please stop asking.

    --
    Ian Collins.

    Comment

    • rudra

      #3
      Re: system call as variabe

      On Jul 9, 12:00 pm, Ian Collins <ian-n...@hotmail.co mwrote:
      rudra wrote:
      i want to use system bit as a input of my c program.
      >
      We know, please stop asking.
      >
      --
      Ian Collins.
      i am extremly sorry....actual ly my network was down and so...

      Comment

      Working...