#include"stdio.h"
#include"gsl_matrix.h"

int print_half_00(gsl_matrix *m){
	double half = 1/2;
	printf("half m_{00} = %i\n", gsl_matrix_get(m,0,0)*half);
	gsl_matrix_free(m);
}

int main(void){
	gsl_matrix m = gsl_matrix_alloc(0,0);
	gsl_matrix_set(m,0,0,66);
	printf("half m_{00} should be 33:\n");
	int *status=print_half_00(&m);
	if(&status>0)
		printf("status=%g: SOMETHING WENT TERRIBLY WRONG (status>0)\n",status);
	else
		printf("status=%g: everything went fine (status=0)\n",status);
	gsl_matrix_free(&m);
return 0;
}
