I am trying to implement a minishell where if the user wants to exit the programm he is asked if he really wants to exit.

Code:
int main(int argc, char * argv[]){  

    char cwd[256]; char input[256]; 
    char *command;  

    while(1) {     

        //return user-info and current working directory 
        getcwd(cwd, sizeof(cwd));     
         printf("%s@miniShell:%s$
...