Something
public c v1 · immutable/* buf is already defined i know this works, but im sure theres a better way, im new to C :] data is also passed into the function */FILE *ptr; ptr = popen(data, "r"); while (feof(ptr) == 0) { char plbuff[4096]; fgets (plbuff, len, ptr); strncat(buf, plbuff, len -strlen(buf) -1);