l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Dec 26 16:05

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] strerror deprecated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] strerror deprecated?

On Tue 26 Dec 06, 11:49 AM, Richard Harke <rharke@earthlink.net> said:
> I would try the strerror_r() on MS just in case there is a doc error.
> As far as buffer length -- I believe all the standard error messages
> are less than a line long, i.e. less than 80 chars. Of course, if you expect
> to use locales other than "C", you will probably need to double or
> triple this to allow for multi-byte chars. (The locale correctness is a
> motivation to use strerror and kin)
> If streeror_r doesn't work on MS, there is the old and ugly macro
> method:
> #ifdef MS
> #define Strerror_r() strerror_s()
> #else
> #defiene Strerror_r() strerror()
> #endif
> But you knew that. Sorry I can't suggest anything more elegant.
> Richard

Thanks, Richard!

For the record, strerror_r() isn't implemented in VC++, but it does appear
to be a drop in replacement for strerror_s().

BTW, when you say that all the error messages are a line long, are you
speaking pragmatically or from a standards view?  I'm really trying to write
this "by the books."

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!