void fib(int **fib_sequence ,int count){
    *fib_sequence = malloc(sizeof(int) * count);
    if (count == 1){
	*fib_sequence[0] = 0;
}   else {
	*fib_sequence[0] = 0;
	*fib_sequence[1] = 1;
	int i;
	for (i = 2; i < count; i++){
	    *fib_sequence[i] = *fib_sequence[i - 1] + *fib_sequence[i -2];
	}
    }
}

create an array of length count