[ILUG] C question [puzzled by strdup()]

Stephen Shirley diamond at skynet.ie
Thu Aug 2 15:04:01 IST 2001


On Thu, 2 Aug 2001, Waider wrote:

> Kinda getting away from the original question, but yeah, you can
> frob errno yourself. Probably not a good idea, though, as any system
> calls you make will also affect the value of the variable. Application-
> level error handling is best defined by, well, the person designing
> the application.
>
Well you always have to be aware of function calls which may alter the
value of errno - it shouldn't matter whether they're system calls or ones
you wrote yourself. After all, any user written function could call a
system call which alters the value of errno anyway.

Steve
-- 
"My mom had Windows at work and it hurt her eyes real bad"





More information about the ILUG mailing list