diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-27 09:49:13 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-27 09:49:13 -0700 |
commit | 0cad45fa900133942fedc7ea22bc4802e57d9ca0 (patch) | |
tree | 95fa3328c6962997f1233146fb696f30560a08ab /src/misc/vec | |
parent | fb6eaaf5d9e26d7b0ac326fa17a8c7379b24df68 (diff) | |
download | abc-0cad45fa900133942fedc7ea22bc4802e57d9ca0.tar.gz abc-0cad45fa900133942fedc7ea22bc4802e57d9ca0.tar.bz2 abc-0cad45fa900133942fedc7ea22bc4802e57d9ca0.zip |
New MFS package.
Diffstat (limited to 'src/misc/vec')
-rw-r--r-- | src/misc/vec/vecStr.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h index 159dfd69..4a400ce6 100644 --- a/src/misc/vec/vecStr.h +++ b/src/misc/vec/vecStr.h @@ -638,6 +638,25 @@ static inline void Vec_StrReverseOrder( Vec_Str_t * p ) /**Function************************************************************* + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline int Vec_StrSum( Vec_Str_t * p ) +{ + int i, Counter = 0; + for ( i = 0; i < p->nSize; i++ ) + Counter += (int)p->pArray[i]; + return Counter; +} + +/**Function************************************************************* + Synopsis [Compares two strings.] Description [] |