diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-04-23 01:20:36 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-04-23 01:20:36 -0400 |
commit | e0cb5545ccb95cbc6cf03fd256cca622f613ecdf (patch) | |
tree | 219ab0ba233d717b90b21968acf51454cd6c9dc5 /.vim/c-support/codesnippets/print_int_array.c.noindent | |
parent | f505cc10656d4262dba69aa6ced81dd9024ec592 (diff) | |
download | openwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.tar.gz openwrt-repro-e0cb5545ccb95cbc6cf03fd256cca622f613ecdf.zip |
removed a bunch of unused vim stuff
Diffstat (limited to '.vim/c-support/codesnippets/print_int_array.c.noindent')
-rw-r--r-- | .vim/c-support/codesnippets/print_int_array.c.noindent | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/.vim/c-support/codesnippets/print_int_array.c.noindent b/.vim/c-support/codesnippets/print_int_array.c.noindent deleted file mode 100644 index fc32043..0000000 --- a/.vim/c-support/codesnippets/print_int_array.c.noindent +++ /dev/null @@ -1,34 +0,0 @@ - -/* - * === FUNCTION ====================================================================== - * Name: print_int_array - * Description: Print an int-array with one dimension. - * Use - * print_int_array( *matrix, n1*n2, n2, "matrix" ); - * for - * int matrix[n1][n2]; - * ===================================================================================== - */ -static void -print_int_array ( int array[], /* array to print */ - int n, /* number of elements to print */ - int nrow, /* number of elements per row */ - char *arrayname /* array name */ - ) -{ - int i; - printf ("\n\n array \"%s\", length %d\n", arrayname, n ); - printf ("\n index | content\n" ); - printf ( " ------+-" ); - for ( i = 0; i < nrow; i += 1 ) - printf ( "-------" ); - for ( i=0; i<n; i+=1 ) - { - if( i%nrow == 0 ) - printf ("\n%6d | ", i ); - printf (" %6d", array[i] ); - } - printf ("\n\n"); - return ; -} /* ---------- end of function print_int_array ---------- */ - |