if (errno == 1) {
return 1;
}
-<<<<<<< HEAD
printf("----------------------------------------------------------------------\n");
printf("available commands:\n");
printf(" b (break), c (continue), s (stack), r (reset), p (power), q (quit)\n");
printf("----------------------------------------------------------------------\n");
-=======
- printf("--------------------------------------------------------------------\n");
- printf("available commands: i (interrupt), c (continue), s (stack), r (reset), q (quit)\n");
- printf("--------------------------------------------------------------------\n");
->>>>>>> master-sx
printf("init done - press key to start\n");
char c = getchar();
getchar(); // remove line feed from stdin
// shutdown();
// break;
// }
-
+
if (getline(&line, &size, stdin) > 0) {
-<<<<<<< HEAD
const char *commands[] = { "quit", "break", "continue", "stack", "reset", "power" };
-=======
- const char *commands[] = { "quit", "interrupt", "continue", "stack", "reset" };
->>>>>>> master-sx
try {
int foundIndex = -1;
int foundCnt = 0;