root/libutil/varray.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2004 Tama Communications Corporation
   3  *
   4  * This file is part of GNU GLOBAL.
   5  *
   6  * This program is free software: you can redistribute it and/or modify
   7  * it under the terms of the GNU General Public License as published by
   8  * the Free Software Foundation, either version 3 of the License, or
   9  * (at your option) any later version.
  10  * 
  11  * This program is distributed in the hope that it will be useful,
  12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  * GNU General Public License for more details.
  15  * 
  16  * You should have received a copy of the GNU General Public License
  17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18  */
  19 #ifndef _VARRAY_H
  20 #define _VARRAY_H
  21 
  22 typedef struct _varray {
  23         char *vbuf;
  24         int size;
  25         int length;
  26         int alloced;
  27         int expand;
  28 } VARRAY;
  29 
  30 VARRAY *varray_open(int, int);
  31 void *varray_assign(VARRAY *, int, int);
  32 void *varray_append(VARRAY *);
  33 void varray_reset(VARRAY *);
  34 void varray_close(VARRAY *);
  35 
  36 #endif /* ! _VARRAY_H */

/* [previous][next][first][last][top][bottom][index][help] */