By the way, I use it in main() like this:
uchar *test = "Test";
int size = sizeof(test);
uchar *outp = calloc(size, sizeof(uchar));
if(outp!=NULL){
readAndConvert(&test, &outp, 4, 0);
printf("%s\n", outp);
// free(outp);
}
and can't free memory by doing free(outp)...