diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-12-14 11:42:41 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-12-14 11:42:41 -0500 |
commit | fd2001cd614dfa0d55ec820b7c358a1795d3ea27 (patch) | |
tree | 932b5f91ad3c70f9cfa4455a0ccfb27a7b259bf1 /dot_vim/c-support/codesnippets/print_double_array.c.noindent | |
parent | added symlink to cclub afs (diff) |
Simplify vim configuration
Diffstat (limited to 'dot_vim/c-support/codesnippets/print_double_array.c.noindent')
-rw-r--r-- | dot_vim/c-support/codesnippets/print_double_array.c.noindent | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dot_vim/c-support/codesnippets/print_double_array.c.noindent b/dot_vim/c-support/codesnippets/print_double_array.c.noindent deleted file mode 100644 index 6ced53a..0000000 --- a/dot_vim/c-support/codesnippets/print_double_array.c.noindent +++ /dev/null @@ -1,30 +0,0 @@ - -/* - * === FUNCTION ====================================================================== - * Name: print_double_array - * Description: Print a double-array with one dimension. - * Use - * print_int_array( *matrix, n1*n2, n2, "matrix" ); - * for - * double matrix[n1][n2]; - * ===================================================================================== - */ -static void -print_double_array ( double 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 ); - for ( i=0; i<n; i+=1 ) - { - if( i%nrow == 0 ) - printf ("\n%6d : ", i ); - printf (" %8.2f", array[i] ); - } - printf ("\n\n"); - return ; -} /* ---------- end of function print_double_array ---------- */ - |