Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:05:33

0001 /*
0002  *  svec.h  --
0003  *  Implement a vector of strings ADT
0004  *
0005  *  Original:  6-Dec-1995 23:09
0006  *
0007  *  Author:   Maarten Ballintijn <Maarten.Ballintijn@cern.ch>
0008  *
0009  *  $Id$
0010  *
0011  *  $Log$
0012  *  Revision 1.4  1996/04/23 18:39:13  maartenb
0013  *  - Add RCS keywords
0014  *
0015  *
0016  */
0017 
0018 #ifndef CERN_SVEC
0019 #define CERN_SVEC
0020 
0021 #include    "cern_types.h"
0022 
0023 
0024 typedef struct _svec_struct_ {
0025     int     fSize;
0026     int     fEntries;
0027     String *    fV;
0028 } SVecStruct;
0029 
0030 typedef SVecStruct  *SVec;
0031 
0032 
0033 extern SVec
0034 svec_new( int n );
0035 
0036 extern SVec
0037 svec_copy( SVec v );
0038 
0039 extern void
0040 svec_add( SVec v, String s );
0041 
0042 extern String
0043 svec_get( SVec v, const int i );
0044 
0045 extern void
0046 svec_del( SVec v );
0047 
0048 extern int
0049 svec_entries( SVec v );
0050 
0051 #endif  /*  CERN_SVEC   */