Guest User

Untitled

a guest
May 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. int main(int argc, char **argv)
  5. {
  6. if (argc != 4)
  7. {
  8. exit(1);
  9. }
  10. ///argv program klucz wejscie wyjscie
  11. FILE *wejscie;
  12. FILE *wyjscie;
  13. if (wejscie = fopen(argv[2],"r")==NULL)
  14. {
  15. exit(2);
  16. }
  17. else
  18. {
  19. printf("%s","hurra");
  20. }
  21. return(0);
  22.  
  23. }
Add Comment
Please, Sign In to add comment