summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecVec.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-01-15 20:47:58 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-01-15 20:47:58 -0800
commit10478a9cbf37432cb70e8b1ae58d79375d72c5c8 (patch)
tree5f48c83c2fc1e5cd0f1d9b1aaccd90bc73762ede /src/misc/vec/vecVec.h
parentbb4897aba6f88bbcccddcebc4389ed46d226e873 (diff)
downloadabc-10478a9cbf37432cb70e8b1ae58d79375d72c5c8.tar.gz
abc-10478a9cbf37432cb70e8b1ae58d79375d72c5c8.tar.bz2
abc-10478a9cbf37432cb70e8b1ae58d79375d72c5c8.zip
Variable timeframe abstraction.
Diffstat (limited to 'src/misc/vec/vecVec.h')
-rw-r--r--src/misc/vec/vecVec.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/misc/vec/vecVec.h b/src/misc/vec/vecVec.h
index 5405e7f4..91713291 100644
--- a/src/misc/vec/vecVec.h
+++ b/src/misc/vec/vecVec.h
@@ -586,6 +586,29 @@ static inline void Vec_VecSort( Vec_Vec_t * p, int fReverse )
(int (*)(const void *, const void *)) Vec_VecSortCompare1 );
}
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+static inline void Vec_VecPrintInt( Vec_Vec_t * p )
+{
+ int i, k, Entry;
+ printf( "Integers by level" );
+ Vec_VecForEachEntryInt( p, Entry, i, k )
+ {
+ if ( k == 0 )
+ printf( "\n%3d : ", i );
+ printf( "%6d ", Entry );
+ }
+ printf( "\n" );
+}
ABC_NAMESPACE_HEADER_END