Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # define LIMIT=20
- char buf[512] = {0};
- while (1)
- {
- printf("$> type your command here: \n");
- fgets(buf, LIMIT, stdin);
- if (strncmp(buf, "exit", LIMIT) == 0)
- exit_this();
- bzero(buf, 512);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement