delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/10/14:47:05

Message-ID: <375FFDEC.4495@home.com>
From: "Salvador I. Ducros" <sducros AT home DOT com>
X-Mailer: Mozilla 3.04 (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Generic Data Structures in C
References: <375F09D6 DOT 15D8 AT home DOT com> <7jnsii$plv$1 AT antares DOT lu DOT erisoft DOT se>
Lines: 30
Date: Thu, 10 Jun 1999 18:01:37 GMT
NNTP-Posting-Host: 24.65.65.159
X-Complaints-To: abuse AT home DOT net
X-Trace: news2.rdc1.on.home.com 929037697 24.65.65.159 (Thu, 10 Jun 1999 11:01:37 PDT)
NNTP-Posting-Date: Thu, 10 Jun 1999 11:01:37 PDT
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019