Advertisement
morty0505

Untitled

Dec 13th, 2016
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. if (argc > 1) {
  2. FILE *f = fopen(argv[1],"r");
  3.  
  4. for(int i = 0; i < 8; i++) {
  5. for(int j = 0; i < 8; i++) {
  6. board->fields[j][i] = fgetc(f);
  7. }
  8. fgetc(f); //newline
  9. // fgetc(f); //carriage return?!
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement