At 03:42 PM 3/22/2004, Bojan Smojver wrote:

>You are correct, it is probably an expensive operation. The other way
>would be to know the position within a file and compare it to the one
>that we should go to. If they are the same, do nothing.

I smell future bugs brewing - remember the handle may be dupped.

>There is fgetpos() in ANSI C, but I'm not sure what the equivalent in
>APR is and how expensive it is.

That would be 2 kernel calls instead of one - always a losing proposition.

Bill  

Reply via email to