document for 4.3BSD release
[unix-history] / usr / src / old / lib2648 / zermat.c
CommitLineData
70d47bd6
DF
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
8static char sccsid[] = "@(#)zermat.c 5.1 (Berkeley) %G%";
9#endif not lint
10
4ad7ece9
RC
11/*
12 * zermat: set a matrix to all zeros
13 */
14
15#include "bit.h"
16
17zermat(m, rows, cols)
18bitmat m;
19int 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}