[Home]
[Contents]
[Chapter]
[Previous Algorithm]
[Next Algorithm]


Insertion for lists (Pascal version available)


datarecord *insert( new, list ) typekey new; datarecord *list; { extern int n; n++; return( NewNode( new, list ) ); }

C source (312.ins.c) Pascal source (312.ins.p)



© Addison-Wesley Publishing Co. Inc.