summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/14_14.c
blob: 01a45bbfa0d0e3f0cfc56b61d86aee4b1e5b6ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define X_SIZE 60
#define Y_SIZE 30

int matrix[X_SIZE][Y_SIZE];

void init_matrix(void)
{
    register int x,y;    /* current element to zero */

    for (y = 0; y < Y_SIZE; y++) {
        for (x = 0; x < X_SIZE; x++) {
            matrix[x][y] = -1;
        }
    }
}