Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code:
- //...
- word = kstartup_next_word(&cpos);
- kernel_debug_fputs(word, vfs_getstdout());
- kernel_debug_fputs("-\r\n", vfs_getstdout());
- if (strcmp(word, "#") == 0) {
- //It's a comment. Ignore it.
- kernel_debug_fputs("Comment\r\n", vfs_getstdout());
- }
- kernel_debug_fputs("Finished parsing the line\r\n", vfs_getstdout());
- //...
- Console output:
- #-
- Finished parsing the line
Advertisement
Add Comment
Please, Sign In to add comment