#include "old.h" setup() { char bd[64]; char *p, *ip; int i, err, nkng, c; int wkp, bkp; for(p=bd; p ip) err++; p = ip; continue; default: err++; if(c <= 0) onhup(); goto loop; } if(p < ip) *p++ = c; goto loop; } if(nkng) err++; if(err) { printf("Illegal setup\n"); return; } for(i=0; i<64; i++) board[i] = bd[i]; amp = ambuf+1; lmp = lmbuf+1; eppos = 64; bookp = 0; mantom = 0; moveno = 1; wkpos = wkp; bkpos = bkp; flag = 0; if(wkpos == 60) { if(board[56] == -4) flag =| 2; if(board[63] == -4) flag =| 1; } if(bkpos == 4) { if(board[0] == 4) flag =| 020; if(board[7] == 4) flag =| 010; } printf("Setup successful\n"); }