{========================================================================} {= (c) 1995-98 SwiftSoft Ronald Dittrich =} {========================================================================} {= All Rights Reserved =} {========================================================================} {= D 01099 Dresden = Tel.: +0351-8012255 =} {= Loewenstr.7a = info@swiftsoft.de =} {========================================================================} {= Actual versions on http://www.swiftsoft.de/mmtools.html =} {========================================================================} {= This code is for reference purposes only and may not be copied or =} {= distributed in any format electronic or otherwise except one copy =} {= for backup purposes. =} {= =} {= No Delphi Component Kit or Component individually or in a collection=} {= subclassed or otherwise from the code in this unit, or associated =} {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =} {= without express permission from SwiftSoft. =} {= =} {= For more licence informations please refer to the associated =} {= HelpFile. =} {========================================================================} {= $Date: 20.01.1998 - 18:00:00 $ =} {========================================================================} unit MMSearch; {$I COMPILER.INC} interface uses SysUtils; type TCompareFunc = function(p1, p2: Pointer): integer; function bsearch(key, base: Pointer; nelem, width: integer; fcmp: TCompareFunc): Pointer; function lsearch(key, base: Pointer; var nelem: integer; width: integer; fcmp: TCompareFunc): Pointer; function lfind(key, base: Pointer; nelem, width: integer; fcmp: TCompareFunc): Pointer; procedure qsort(pBase: Pointer; nElem, width: integer; fcmp: TCompareFunc); implementation