void fib(int** sequence, int n){
    sequence = (int) malloc(sizeof(int) * n);
    (*sequence)[0] = 0;
    (*sequence)[1] = 1;
    for(int i = 2; i<n; i++){
        (*sequence)[i] = (*sequence)[i-1] + (*sequence)[i-2];
    }
}
int main(int argc, char **argv) {
    int count = strtol(argv[1], NULL, 10);
    int *fib_sequence;
    fib(&fib_sequence, count);
    for (int i = 0; i < count; i++) {
        printf("%d ", fib_sequence[i]);
    }
    free(fib_sequence);
    return 0;
}
I keep getting a segmentation error
