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

From: Stephen Shirley (diamond at domain skynet.ie)
Date: Thu 02 Aug 2001 - 15:04:01 IST


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"


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:27 GMT