All pastes #925093 Raw Edit

Mine

public text v1 · immutable
·published 2008-03-01 23:59 UTC
rendered paste body
#include <stdio.h>
#define MATRIXSIZE 3

void printmatrix(char *matrix);

int main() {
        char matrix[MATRIXSIZE][MATRIXSIZE] = { {'-', '-', '-'}, {'-', '-', '-'}, {'-', '-', '-'}, };
        printf("Dumb tic-tac-toe game. Please stand bye.\n");
        printmatrix(matrix);
}

void printmatrix(char *matrix) {
        int y;

        for(y=0; y < MATRIXSIZE; y++) {
                printf("%c %c %c\n", *(matrix+y*MATRIXSIZE+0), 
                *(matrix+y*MATRIXSIZE+1), *(matrix+y*MATRIXSIZE+2) );
        }
}