* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
"@(#) Copyright (c) 1980 Regents of the University of California.\n\
static char sccsid
[] = "@(#)colrm.c 5.1 (Berkeley) 5/31/85";
COLRM removes unwanted columns from a file
Jeff Schriebman UC Berkeley 11-74
register c
, ct
, first
, last
;
if (!first
|| ct
< first
) {
/* Loop getting rid of characters */
while (!last
|| ct
< last
) {
/* Output last of the line */
while ((c
= *p
++) >= '0' && c
<= '9')