Hichun Chen <firstname.lastname@example.org> wrote:
“David Gibbs” <> email@example.com> > wrote in message
news:b6skc5$aml$> firstname.lastname@example.org> …
Hichun Chen <> email@example.com> > wrote:
Recently I run my program which contain strerror() function on localhost
remote machine,but the printed information is different:
#./test /* strerror(1); it printed “No error” /
#on -f node_3 ./test / strerror(1); it printed “Function not
Why got this difference?
Where did you get the value you passed to strerror()? I assume you’d
just passed errno – what operation had just failed before you called
strerror? Had an operation even failed?
yes,I used strerror(errno),but it indicated current function no
error,doesn’t this function print last function’s error message? let me
check other functions in the before.
Yes, it tells you why the last function called failed (if it failed).
But, I don’t know what the last function you called was, since I can’t
see your code – so without having any idea what function might have
failed (or even if it failed), I can’t tell you anything about what
might have gone wrong.
QNX Training Services
Please followup in this newsgroup if you have further questions.