I want to have an infinite loop getting command each loop,
and this is my code
while ( 1 )
{
char * command[100];
printf("---| ");
scanf( "%[^\n]",command);
printf("%s\n",command);
}
for some reason it only inputs once and the loop doesnt terminate with asking the input.
what did i do wrong here?