implement ls in c