Commit | Line | Data |
---|---|---|
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 | |
8 | static 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 | ||
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 | } |