Change-Id: I3d1ad54418f69f947e2d829d63b53d44581bfd86
This patch also factors out the dynarray_t/strlist_t code from ls.c and moves it to dynarray.[hc]. Change-Id: Ifae2b364d7c2733aad5551ad3c78ae72f8ac31f4