Source

perlxs / main.c

Full commit
#include <stdio.h>
#include <stdlib.h>

char** test_func(int a, int* b);

int main(void) {
    int a = 1, b = 2;
    char **string_list;
    char **str;

    string_list = test_func(a, &b);

    for (str = string_list; str != NULL && *str != NULL; str +=1 ) {
        printf("string %s\n", *str);
        free(*str);
    }
    free(string_list);

    return 0;
}