* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)dumpmat.c 5.1 (Berkeley) %G%";
* dumpmat: debugging dumpmat of a window or other bit matrix.
* msg is a handy label, m is the matrix, rows, cols is the size of the matrix.
dumpmat(msg
, m
, rows
, cols
)
fprintf(trace
, "\ndumpmat %s, m=%x, rows=%d, cols=%d\n", msg
, m
, rows
, cols
);
minmax(m
, rows
, cols
, &r1
, &c1
, &r2
, &c2
);
fprintf(trace
, "r1=%d, r2=%d, c1=%d, c2=%d\n", r1
, r2
, c1
, c2
);
fprintf(trace
, "%2d ", r
);
fprintf(trace
, "%c", mat(m
, rows
, cols
, r
, c
, 5) ? 'X' : '.');