Guest User

Untitled

a guest
Jan 13th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. Code:
  2.  
  3.     //...
  4.     word = kstartup_next_word(&cpos);
  5.     kernel_debug_fputs(word, vfs_getstdout());
  6.     kernel_debug_fputs("-\r\n", vfs_getstdout());
  7.    
  8.     if (strcmp(word, "#") == 0) {
  9.         //It's a comment. Ignore it.
  10.         kernel_debug_fputs("Comment\r\n", vfs_getstdout());
  11.     }
  12.    
  13.     kernel_debug_fputs("Finished parsing the line\r\n", vfs_getstdout());
  14.     //...
  15.  
  16.  
  17. Console output:
  18.  
  19. #-
  20. Finished parsing the line
Advertisement
Add Comment
Please, Sign In to add comment