Search:

Type: Posts; User: pooty tang

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    4,375

    Quzah, I love you, if I were a woman and I assume...

    Quzah, I love you, if I were a woman and I assume you are a man, I would marry you :D . You have been a great help to me, thank you very much.
  2. Replies
    8
    Views
    4,375

    Ok I figure if I want to pass **args to translate...

    Ok I figure if I want to pass **args to translate I would do it like this:


    translate(**args);


    with this prototype:


    void translate(char **input);
  3. Replies
    8
    Views
    4,375

    Ok I understand how u are printing out each...

    Ok I understand how u are printing out each element out a time by passing one by one. How could I pass the whole thing to the function so that I could print it out like this:


    printf("%s\n",...
  4. Replies
    8
    Views
    4,375

    Passing my array to function

    I am having a problem where I do not understand the syntax on how to pass my array to a function and then access each argument. As it is now, while my array is in main, I can print each argument...
  5. Replies
    16
    Views
    2,420

    YEAH!!! That did the trick, thanks so much guys I...

    YEAH!!! That did the trick, thanks so much guys I really appreciate everybody's help.
  6. Replies
    16
    Views
    2,420

    Ok I used the strcmp(csh, "bye") on the outer...

    Ok I used the strcmp(csh, "bye") on the outer while loop but it does not exit the while loop when I type bye. It isn't recognizing that they are equal.



    #include <stdio.h>
    #include <string.h>...
  7. Replies
    16
    Views
    2,420

    Ok, so now the command and its arguments are...

    Ok, so now the command and its arguments are stored in args[]. Now I want it to keep prompting for new commands and its arguments until the user types "bye", im trying to do a string comparison with...
  8. Replies
    16
    Views
    2,420

    Ah I see, sorry I was doing g++, now there are no...

    Ah I see, sorry I was doing g++, now there are no errors with gcc.
  9. Replies
    16
    Views
    2,420

    Thanks for the quick replies guys. So far i've...

    Thanks for the quick replies guys. So far i've only tried itsme86's code but I am getting a couple of errors:



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    main()
    {
  10. Replies
    16
    Views
    2,420

    Parsing a line and saving args

    I am writing a program in which I must read in a line of text which contain a command and its arguments. I have to parse the the line and break it up into its individual componets so that I can...
Results 1 to 10 of 10