Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. gcc -E -nostdinc -I./ input.c
  2.  
  3. grep -vE "(stdio|stdlib).h" code.c > code_.c
  4.  
  5. #define EXITCODE 0
  6. int main(){
  7. int i = EOF;
  8. printf("hellon");
  9. return EXITCODE;
  10. }
  11.  
  12. S:c>gcc -E code_.c
  13. # 1 "code_.c"
  14. # 1 "<built-in>"
  15. # 1 "<command-line>"
  16. # 1 "code_.c"
  17.  
  18. int main(){
  19. int i = EOF;
  20. printf("hellon");
  21. return 0;
  22. }
  23.  
  24. $ cpphs --nowarn --nomacro -I./ input.c | sed -E 's|#line 1 "missing file: (.*)"|#include <1>|'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement