Mail Archives: djgpp/1999/06/10/14:47:05
Martin Stromberg wrote:
>
> Salvador I. Ducros (sducros AT home DOT com) wrote:
> : I'm wondering if anyone here knows of a library, or maybe
> : just some code, implementing a generic data structure in C.
>
> : By "generic" I mean a data structure (e.g. list, stack, whatever)
> : that does not depend on the data type of the information being stored
> : in the data structure. In other words, something "similar" to the
> : template mechanism of C++.
>
> I'm not sure it's what you're after but perhaps "void *"?
>
> Right,
>
> MartinS
You're right on the money there. The reason I ask is that I wrote
a library for myself that implements a few generic data structures.
The data structures do in fact use 'void' pointers. So far I've had
no problems but there are still a few semantic issues on which I'm
unable to come to a decision.
I was hoping someone else out there may have tackled the same or
similar issues and wanted to compare notes.
Anyone?
Salvador I. Ducros
sducros AT home DOT com
- Raw text -