Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main( int argc, char * argv[] )
  4. {
  5. FILE *in =fopen(argv[1],"r");
  6. char c;
  7.  
  8. if(in==NULL)
  9. return 0;
  10.  
  11. while(fscanf(in,"%c",&c)!=EOF)
  12. {
  13. if(c>=48 && c<=57)
  14. printf("%c\n",c);
  15. }
  16.  
  17. fclose(in);
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement