Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

libgeneralist

Name: Anonymous 2011-09-12 22:56

So, /prog/, I'm writing a general library in C, with the aim of being somewhat inspired by libraries such as glib, but far lighter and cleaner. So far, I have a linked list implementation and a Unicode string implementation (this is incomplete), totalling 670 SLOC. The build system is cmake, the code is fully documented with doxygen. Of course, the library is in its infancy and far from finished; what other things should I implement? Any data structures? OS abstractions?

Name: n3n7i 2011-09-14 3:29

>>50 Technically, you could just about call it a linked list?
Except index isn't actually linked to the record it resides in...
It could easily be turned into a linked version though?

Name: n3n7i 2011-09-14 3:40

if Index is taken to represent a Next pointer

aStruct[1].Value = "B" // .Next = 4

aStruct[4].Value = "A" // .Next = 3

aStruct[3].Value = "D" // .Next = 2

aStruct[2].Value = "C" // .Next = 1 (Loop?)

...Sorted without even moving the array entries?
...Its a linked list Array =)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List