All pastes #152348 Raw Edit

Anonymous

public c v1 · immutable
#152348 ·published 2006-08-28 18:56 UTC
rendered paste body
#include <stdio.h>#include <string.h>char napis[10000];char i = 0;int main(int argc, char *argv[]){        FILE *stary=fopen(argv[1], "r");        /*FILE *nowy=fopen(argv[2], "w");*/        if(!stary){                printf("Nie utworzono pliku.\n");                return 0;        }        while(!feof(stary)){                fscanf(stary, "%c", &napis[i]);                ++i;        }        --i;        for(i;i>=0; --i){                printf("%c", napis[i]);        }        return 0;}