[newbie] _lfind syntax problem
From: Peter Schmitz (PeterSchmitz_at_discussions.microsoft.com)
Date: 12/23/04
- Next message: Igor Tandetnik: "Re: Fast linked list"
- Previous message: Bogdan Sintoma: "RE: templates, C++, and LNK2019"
- Next in thread: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Reply: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Reply: Pavel A.: "Re: [newbie] _lfind syntax problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 08:09:02 -0800
Hi again,
this time, I want to do some binary searching. Therefore I have declared the
following:
BYTE *buffer; //holds pointer to data to search in
UINT bufferlen; //length in bytes of buffer
BYTE *pattern; //holds pointer to pattern to search for
UINT patternlen; //length of pattern in bytes
Now, I've decided to use _lfind for this searching (I'm not using bsearch,
because AFAIK I'd have to sort the buffer I search in - and as I normally
search in rather small buffers this would decrease my speed significantly -
or am I wrong?).
But somehow I don't get the correct syntax to call _lfind (perhaps because
I'm a newbie to C). So, could someone show me how to call _lfind with the
parameters from above?
Merry Christmas
Peter
- Next message: Igor Tandetnik: "Re: Fast linked list"
- Previous message: Bogdan Sintoma: "RE: templates, C++, and LNK2019"
- Next in thread: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Reply: Doug Harrison [MVP]: "Re: [newbie] _lfind syntax problem"
- Reply: Pavel A.: "Re: [newbie] _lfind syntax problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|