Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int getline(char table[][8], char col, int row, int dc, int dr, char line[])
- {
- char c=col;
- int i,j,k=0;
- i=row-1;
- j=(int)(c)-97;
- i+=dr;
- j+=dc;
- while(((i<=7)&&(i>=0))&&((j<=7)&&(j>=0)))
- {
- line[k]=table[i][j];
- i+=dr;
- j+=dc;
- k++;
- }
- return k;
- }
Advertisement
Add Comment
Please, Sign In to add comment