TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ken Kavanagh
from: Edwin Groothuis
date: 1994-11-27 11:52:04
subject: a linked list sort function

Hallo Ken,

11-25-94 02:30, Ken Kavanagh wrote to Someone:

 KK> can someone suggest a place to look for a sort function to be
 KK> used to sort a already created linked list?

I had the same problem as you, but solved it (due to the `unlimited'
memory while running under os/2):

Allocate a huge (=the amount of bytes needed for the linked list items)
memoryblock and copy everything in it. qsort() it. Copy it back into the
list. 

Edwin/2         (edwin{at}mavetju.iaehv.nl)
/\/\ /\ \/!

...A man without a God is like a fish without a bicycle.
--- FNNR 17a+


* Origin: MavEtJu rules! (2:284/205.1)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 284/205 2 280/0 801 24/24 396/1 3615/50 229/2 12/2442
@PATH: 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.