Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (argc > 1) {
- FILE *f = fopen(argv[1],"r");
- for(int i = 0; i < 8; i++) {
- for(int j = 0; i < 8; i++) {
- board->fields[j][i] = fgetc(f);
- }
- fgetc(f); //newline
- // fgetc(f); //carriage return?!
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement