hello,
i am writing a program in C. i have it like this so far:
------------------------------------
#include<stdio.h>
char *com[256];
int main()
{
[first half of prog goes here]
[i want to clear the com variable here]
[last half here]
return 0;
}
------------------------------------------
yea, so can anyone tell me how i can clear the variable? cause its currently got the string "echo hello" in it, and i want to put in "echo yes", but it turns out as "echo yeslo" so i figured if i cleared it it wouldn't do that.
thanks all!