home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: How to implement a Linked List
- Distribution: world
- References: <1992Dec16.062628.3410@nuscc.nus.sg>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 28
- Date: Wed, 16 Dec 1992 19:03:08 +0000
- Message-ID: <724532588snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1992Dec16.062628.3410@nuscc.nus.sg> shah@cherry.NoSubdomain.NoDomain writes:
-
- >Hi there!
- >Does anyone out there knows how to implement a linked list for Windows using
- >MS C7. I know how to do it in C but in Windows it look tricky. I think I may
- >need to use the global heap with the GMEM_MOVEABLE flag but I not too sure
- >of going around doing it. Can anyone gave me some pointer, please. Any
- >source code sample is also appreciated.
- >
- >Shahrin
- >E-mail shah@iss.nus.sg
- >
-
- If you're using Microsoft C7, you can implement a linked list in Windows
- in exactly the same way you would for DOS - just use the standard run time
- library "malloc" function. If you use the large memory model (and there's
- no reason not to, any more), "malloc" gets mapped onto calls to a pretty
- good "sub-allocator".
-
- Chris
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | (Still awaiting inspiration | CIX: cmarriott |
- | for a witty .sig .... ) | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-