create only the project files specified on cmdline
[reactos.git] / reactos / tools / ppc-le2be.c
1 #include <stdio.h>
2
3 int main( int argc, char **argv ) {
4 char buf[8];
5 int rlen, i;
6 FILE *fin = NULL, *fout = NULL;
7
8 if( argc < 3 ) return 1;
9
10 fin = fopen( argv[1], "rb" );
11
12 if( fin )
13 fout = fopen( argv[2], "wb" );
14 if( !fout ) return 1;
15
16 do {
17 rlen = fread( buf, 1, 8, fin );
18 for( i = 7; rlen > 0 && i >= 0; i-- ) fputc( buf[i], fout );
19 }
20 while( rlen == 8 );
21
22 fclose( fout );
23
24 return 0;
25 }