Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
About Me

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!…

Favorite Forums
Favorite Tags
c x 6
c++ x 4
Member Avatar for shaneetra.graham

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 …

Member Avatar for L7Sqr
0
2K
Member Avatar for shaneetra.graham

I'm new to the gdb debugger and was wondering how to i step through my code in gdb.

Member Avatar for Ancient Dragon
0
78
Member Avatar for shaneetra.graham

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.

Member Avatar for Ancient Dragon
0
485
Member Avatar for shaneetra.graham

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 …

Member Avatar for JasonHippy
0
219
Member Avatar for shaneetra.graham

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) …

Member Avatar for shaneetra.graham
0
117
Member Avatar for shaneetra.graham

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, …

Member Avatar for Ancient Dragon
0
165
Member Avatar for shaneetra.graham

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.

Member Avatar for N1GHTS
0
125