I'm having some trouble with memory allocation in C.
I seem to always write or read to or from a wrong spot here, there's probably something I'm missing here:
char *a = malloc(8+b+1+c+1+d+1+e+1+f+4+6);
*(a+8+b+1+c+1+d+1+e+1+f+4+6) = '\0';
snprintf(a, strlen(a), "xyz \"%sx%sx%sx%sx%s\" ",v, w, x, y, z);
Could anyone help me get back on track?