VList PB Library, beta v0.5

Developed or developing a new product in PureBasic? Tell the world about it.
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

VList PB Library, beta v0.5

Post by Codemonger »

I have created a Vector List Libray (vector array) for PB and C ... it's currently in beta as I just finished it yesterday. I haven't really tested it that much hoping I could get some help testing it and hopefully people can break it and make suggestions.

here is the link to download:

http://www.codemonger.com/Default.asp?Page=Projects

here is the link to the function chart for documentation:

http://www.codemonger.com/Default.asp?Page=Docs

tutorials will come for PB after I take a break.

Place the "VList" PB file in the following directory:
"C:\Program Files\PureBasic\PureLibraries\UserLibraries"
(of course change the directory to suit your computer)


All variables are Longs and return variables are also Longs. You do not have to use pointers at all for creating the list, so your variable does not need * in front of it.

remeber to call VListDelete() when you are done using the list to free the memory being used... if you create more than one list you can set the current list you want to use with VListSet(). Also when you Create a list it sets the newly created list as the current one ... heres some simple sample code to get you started :

Code: Select all


 TestList = VListCreate(50) ;allocates 50 units of memory , u can use 0
   
     VListPush(1)
     VListPush(2)
     VListPush(7)
     VListPush(11) 
     VListPop()
   
  VListDelete()

any questions just post em here or email me:

chunick@codemonger.com
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.