characters list manipulation written in functionnal C.