Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Additional features for m_vstrlist

open
nobody
None
5
2013-01-24
2012-02-20
Tim Cera
No

Added several functions useful to me to m_vstringlist...

vstrlist_iterator: Return newstring in starting at element 1 and progressing through the list, each time vstrlist_iterator is called.
vstrlist_iterator_reset: Resets the vstrlist_iterator so that the next vstrlist_iterator will return the first element.

vstrlist_pop_last: Return the last element of the list, then delete it.
vstrlist_pop_first: Return the first element of the list, then delete it.

vstrlist_del: Delete an element from the list.

At this point I extensively use vstrlist_pop_first (and by extension vstrlist_del). Really needs to have tests, but a cursory glance I had trouble figuring out the test framework.

Kindest regards,
Tim

Discussion

  • Tim Cera
    Tim Cera
    2012-02-20

    Diff style patch file

     
    Attachments