OMG, that function is exactly what I need.
Unfortunately, i got yet another Compiler Error, this time from LTRuntime.h:

Line 81: 'realloc' undeclared identifier

LFProtocolBody **temp = (LFProtocolBody **)realloc(bag->bodys, (bag->bodyCount + 1) * sizeof(LFProtocolBody*));