diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-21 19:03:41 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2020-03-21 19:03:41 -0700 |
commit | a4518e6f833885c905964f1233d11e5b941ec24c (patch) | |
tree | 88c50ee97eb997cb5c275b3a1dc6e259cc86ac34 /src | |
parent | fb6e4ee290ac874f3d2f77de051733c92974abfd (diff) | |
download | abc-a4518e6f833885c905964f1233d11e5b941ec24c.tar.gz abc-a4518e6f833885c905964f1233d11e5b941ec24c.tar.bz2 abc-a4518e6f833885c905964f1233d11e5b941ec24c.zip |
Various changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/vec/vecPtr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h index 4b76b69f..ed2a481e 100644 --- a/src/misc/vec/vecPtr.h +++ b/src/misc/vec/vecPtr.h @@ -736,6 +736,14 @@ static inline int Vec_PtrFind( Vec_Ptr_t * p, void * Entry ) return i; return -1; } +static inline int Vec_PtrFindStr( Vec_Ptr_t * p, char * Entry ) +{ + int i; + for ( i = 0; i < p->nSize; i++ ) + if ( p->pArray[i] && !strcmp((char *)p->pArray[i], Entry) ) + return i; + return -1; +} /**Function************************************************************* |