[PD-dev] dynamic list generation in C