#include "block.h"

static char *addcolid ="$Id: add_col.c,v 1.5 1996/12/30 19:20:37 galway Exp $";

/****************************************************************/
/*
    add_col.c

    Copyright (C) 2004  Lionel A. Galway

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    For a copy of the GNU General Public License write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Routine to add column ncol to given block.  Requires that column
not already be in the block (otherwise column count gets mixed up).
Note that the routine only manipulates the column indicator list and
column count, it does not update quantities like the block code.

L. Galway 30-DEC-1996
*/
/****************************************************************/

void add_col(ncol,blk)
int ncol;struct block *blk;
{
	blk->icol[ncol] =1;
	(blk->nc)++;
	return;
}
