by Eric Sosman <esosman@[EMAIL PROTECTED]
>
May 9, 2008 at 11:41 AM
nembo kid wrote:
> I have an issue with a simple function that has to make a linear search
> for a key into an array.
>
> If the key is found in the array, the function it has to return 1 to the
> caller and pass array index through a out parameter.
>
> The issue is that the out parameter is not being updated.
>
> If I return the position to the caller (instead to use a out parameter)
> all is ok.
> [...]
This is Question 4.8 in the comp.lang.c Frequently
Asked Questions (FAQ) list, <http://www.c-faq.com/>.
The
question's title in the FAQ doesn't seem at first blush to
have much to do with your problem, but trust me and read on.
--
Eric Sosman
esosman@[EMAIL PROTECTED]