Unix Technical Forum

Re: char signed or unsinged ? (was Netscape 7 issues)

This is a discussion on Re: char signed or unsinged ? (was Netscape 7 issues) within the comp.unix.solaris forums, part of the Solaris Operating System category; --> In article <bf1ccq$mg6$1@news.cs.tu-berlin.de>, Joerg Schilling <js@cs.tu-berlin.de> wrote: >In article <bf1ae5$qe1@keck5.umd.edu>, >Eric J. Kostelich <ejk@Glue.umd.edu> wrote: > >But limits.h is ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 12:27 PM
Eric J. Kostelich
 
Posts: n/a
Default Re: char signed or unsinged ? (was Netscape 7 issues)

In article <bf1ccq$mg6$1@news.cs.tu-berlin.de>,
Joerg Schilling <js@cs.tu-berlin.de> wrote:
>In article <bf1ae5$qe1@keck5.umd.edu>,
>Eric J. Kostelich <ejk@Glue.umd.edu> wrote:
>
>But limits.h is a SysV file and not a standard file.


No. limits.h has always been a standard header in ANSI C.

>Better is to include inttypes.h and use uint8_t & int8_t


Maybe. But inttypes.h exists only in C99, not in earlier standards.
In addition, implementations MUST NOT define uint8_t and int8_t if the
processor does not have a native signed and unsigned integer type
that's exactly 8 bits wide. The most portable way (in C99, anyway) is
to use uint_least8_t and int_least8_t (or uint_fast8_t and
int_fast8_t).

--Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com