Who are you going to believe, me or your own eyes? | ||
--Groucho Marx |
ArrayMaster is a class that handles arrays, like the name said. But it has some more advantages to standard arrays:
It automatically enlarges array size when new space is needed
It offers some APIs to handle the array like it was a double linked list, infact you can browse throught the array with calls like afc_array_master_first() afc_array_master_succ() afc_array_master_prev() and so on.
It offers a customizable, lightspeed fast sort routine. See afc_array_master_sort() for more info
Like all AFC classes, you can instance a new ArrayMaster by calling afc_array_master_new() and free it with afc_array_master_delete()
To add elements to the array, use afc_array_master_add() to delete all elements call afc_array_master_clear() and to delete just one of them there is afc_array_master_del() .