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.
Type: Posts; User: pooty tang
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.
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);
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",...
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...
YEAH!!! That did the trick, thanks so much guys I really appreciate everybody's help.
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>...
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...
Ah I see, sorry I was doing g++, now there are no errors with gcc.
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()
{
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...