Josif_tepe

Untitled

Aug 24th, 2026
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4. #include <math.h>
  5. int main(int argc, char * argv[]) {
  6.     FILE * in = fopen(argv[1], "r");
  7.     FILE * out = fopen(argv[2], "w");
  8.  
  9.     if(in == NULL || out == NULL) {
  10.         printf("Ne postoi datotekata\n");
  11.         return 0;
  12.     }
  13.  
  14.     char niza[2000];
  15.     while(fscanf(in, "%s", niza) != EOF) {
  16.         printf("%s\n", niza);
  17.  
  18.         for(int i = 0; i < strlen(niza); i++) {
  19.             // pravime toa sto ni se bara od zadacata
  20.         }
  21.     }
  22.  
  23.  
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment