|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1980 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: */ ! 6: ! 7: #ifndef lint ! 8: static char sccsid[] = "@(#)zermat.c 5.1 (Berkeley) 4/26/85"; ! 9: #endif not lint ! 10: ! 11: /* ! 12: * zermat: set a matrix to all zeros ! 13: */ ! 14: ! 15: #include "bit.h" ! 16: ! 17: zermat(m, rows, cols) ! 18: bitmat m; ! 19: int rows, cols; ! 20: { ! 21: register int size = ((cols + 7) >> 3) * rows; ! 22: register char *p; ! 23: ! 24: for (p = &m[size]; p>=m; ) ! 25: *--p = 0; ! 26: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.