* 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
[] = "@(#)minmax.c 5.1 (Berkeley) %G%";
* minmax: find the 4 edges of the glyph within a window.
minmax(g
, nrow
, ncol
, rmin
, cmin
, rmax
, cmax
)
int *rmin
, *cmin
, *rmax
, *cmax
;
register int r1
, r2
, c1
, c2
;
aminmax(g
, nrow
, ncol
, &ar1
, &ac1
, &ar2
, &ac2
);
fprintf(trace
, "aminmax returns %d, %d, %d, %d\n", ar1
, ac1
, ar2
, ac2
);
r1
= nrow
; c1
= ncol
; r2
= c2
= 0;
if (mat(g
, nrow
, ncol
, i
, j
, 8)) {