Jump to content

Searching for a particular address in a given range

- - - - -

  • Please log in to reply
2 replies to this topic

#1
XYZ1987

XYZ1987

    Newbie

  • Members
  • Pip
  • 2 posts
Can anyone help me with searching for a particular address in a given range in C. like i have to search for *ptr in range specified by *high and *low. i think it is not same as linear search. can someone provide some input. thanks.

#2
mnirahd

mnirahd

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 330 posts
Hi,

If I've understood correctly, you want to find a value in a linked list. If yes, then you may want to organize your data in form of binary tree: which makes the searching faster!

Munir

#3
XYZ1987

XYZ1987

    Newbie

  • Members
  • Pip
  • 2 posts
basically i m making a garbage collector in c. so i have high and low address of stack. i want to check whether a memory location, which was allocated by malloc lies between high and low of stack. so i need a function for finding if a particular memory address lies in a given address range




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users