Are there any other similar functions to pause() in Linux?
ex: to use in this code
int main(int argc, char*argv[]){
int delay = 5;
alarm(delay);
pause();
return0;
}
Are there any other similar functions to pause() in Linux?
ex: to use in this code
int main(int argc, char*argv[]){
int delay = 5;
alarm(delay);
pause();
return0;
}
How about getchar
?
puts("Press Enter to continue...");
getchar();
The user does have to press Enter (as opposed to any key), but this is platform agnostic.