Search:

Type: Posts; User: theMethod

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,512

    which exec() to use...?

    I have to make a C program in Unix that parses user input to check for valid Unix commands and executes them using exec(). I have completed the parser function and its working perfectly fine for the...
  2. Replies
    6
    Views
    3,383

    I have already checked up on that and got a fair...

    I have already checked up on that and got a fair idea of how to go about starting a new project on Visual C#. What I wish to know is how do I start off coding this game? What all classes and methods...
  3. Replies
    6
    Views
    3,383

    How do I start...!??

    We have this project to develop the game Mill (a.k.a. Nine Men's Morris). Initially we decided to use Java but just about two days ago after a lot of discussion we decided that we will code it in C#....
  4. tabstop it is DONE!!! THANKS A TON BRO......

    tabstop it is DONE!!!
    THANKS A TON BRO... seriously thank you veryyy much...!
    Here's the perfect run!



    mynix> hey
    mynix> - 11No such thing!
    mynix> cd
    mynix> - Done!
  5. I am really grateful to everyone to who has...

    I am really grateful to everyone to who has contributed their time to this post! Thank you very much everyone; especially you tabstop! There are NO segfaults now!

    Well the only thing is that now...
  6. tabstop thanks a lot indeed! That REALLY worked!...

    tabstop thanks a lot indeed! That REALLY worked! There's just one small trouble left now... the program does not pass legal inputs as legal... here's the run... please check! THANKS A LOT!


    ...
  7. Ok here's an update: I replaced all...

    Ok here's an update: I replaced all "strcpy(tempString, inputToken);" statements with "strncpy(tempString, inputToken, strlen(inputToken));". Now the program doesn't recognize a string as legal that...
  8. tabstop I replaced strcmp(whatever, NULL)...

    tabstop I replaced strcmp(whatever, NULL) statements with strcmp(whatever, ""). While running through there is no fault at strcmp anymore but the ones with strcpy still exist! Can you help some more...
  9. Well this is for everyone reading this post......

    Well this is for everyone reading this post... firstly I am seriously grateful for taking some time out to read it!
    Now what I wish to do with this program is to develop a kind of Unix shell...
  10. matsp I tried running the program after removing...

    matsp I tried running the program after removing that part entirely. The string only gets tokenized twice now; and even after inputs with exactly three parts separated by space segmentation fault...
  11. master5001 thanks for taking out so much time!...

    master5001 thanks for taking out so much time! Could you please have a chat with me? I'll be really grateful! If you don't mind then please add user "matereality" on gtalk; I am online right now.
    ...
  12. segmentation fault... first time with unix...

    I have never programmed in C on UNIX earlier and the first time I did returned some surprising results. I first coded the programmed in Turbo C in Windows and it compiled and executed perfectly well....
Results 1 to 12 of 12