No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
is one of a KIND!! <3 *My life = Surprises* I love meeting new people. I like livin my life to the extreme!!! I am a pretty laid back person. I love makin people laugh... what can i say, if u ever meet me, you would fall in love with me! lol Go Noles!…
Trying to implement a history function in C, I know my array size for the history is 100 and i have a max of 9 arguments. I just wanted a little help or advice on where to start! I also know that i need my history initialized before i start … |
|
I'm new to the gdb debugger and was wondering how to i step through my code in gdb. |
|
would like some ideas of how to acutally create my own cd function from scratch using C programming.I'm building a shell program in C. |
|
cd just stays at this state: sgraham@myshell:/home/class/sgraham>cd .. sgraham@myshell:/home/class/sgraham>cd .. typedef struct { int argument; // userCom arguments char *arg[MAX_ARGS + 1]; // userCom arguments array char *Listcomm[MAX_COMMAND_SIZE]; char *input; // hold input file char *output; // hold output file } Command; int main() { Command userCom; //holds userCom struct … |
|
hello i'm trying to make this into a switch statment but i'm having trouble. Any help would be great!!! this is for a shell commands in C. if(strcmp(command->comm[0], "exit") ==0) //exit { printf("EXITING.....\n"); break; } else if(strcmp(command->comm[0],"history")==0) //history { int i=1; for(;i<hisSize;i++) printf(" %s ",history[i]); } //history end else if(strcmp(command->comm[0],"echo")==0) … |
|
I was having a little trouble with parsing my command upon input, I'm new to C so any help would be greatful! Here is what i have so far i'm trying to make a simple unix shell char*token; while(1){ //prints users prompt printf("\n%s@myshell:%s>", username,curDirect); //gets string from command line fgets(buffer, … |
|
I'm buidling my own shell and I was trying to implement a history function, but was a little lost on where to start. I know i would like to use a for loop to go through list, I'm just having trouble on where to store it. |