From fd2001cd614dfa0d55ec820b7c358a1795d3ea27 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 14 Dec 2021 11:42:41 -0500 Subject: Simplify vim configuration --- dot_vim/c-support/codesnippets/calloc_int_matrix.c | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 dot_vim/c-support/codesnippets/calloc_int_matrix.c (limited to 'dot_vim/c-support/codesnippets/calloc_int_matrix.c') diff --git a/dot_vim/c-support/codesnippets/calloc_int_matrix.c b/dot_vim/c-support/codesnippets/calloc_int_matrix.c deleted file mode 100644 index e21215b..0000000 --- a/dot_vim/c-support/codesnippets/calloc_int_matrix.c +++ /dev/null @@ -1,35 +0,0 @@ - -/* - * === FUNCTION ====================================================================== - * Name: calloc_int_matrix - * Description: Allocate a dynamic int-matrix of size rows*columns; return a pointer. - * ===================================================================================== - */ -int** -calloc_int_matrix ( int rows, int columns ) -{ - int i; - int **m; - m = calloc ( rows, sizeof(int*) ); /* allocate pointer array */ - assert( m != NULL ); /* abort if allocation failed */ - *m = calloc ( rows*columns, sizeof(int) ); /* allocate data array */ - assert(*m != NULL ); /* abort if allocation failed */ - for ( i=1; i