Quote Originally Posted by xXSomeGuyXx View Post
Okay, I will look into that. Also, how do I make it so it never really ends? Most programms I van write go along a timeline, and it ends. I know how to make it stop with getchar(),but that doesn;t really help. How would I make this more like a terminal? So where it stays open and allows peope tocontinuously write commands?

Also, I don't really want to get into C right now,I just need to make a terminal like app in this as a quick project for some stuff.
If you want it to be like a terminal, you can always put the getchar inside a loop... something like

Code:
    bool done = false;
    while( !done ) {
        fgets( command, 100, stdin );
        done = processCommand( command );
    }
Of course, you don't have 'bool' if you're using a C compiler...