468,513 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

intptr_t standard?

Isn't intptr_t part of the latest ISO C++?
It is part of the C99 standard but C++? Has any new standard for C++
after C++ 2003 which is almost same as C++98 published?
Which are the compilers that supports it completely?

on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89

http://www.informit.com/guides/conte...eqNum=223&rl=1

Is any new standard for C published after C99?

Aug 7 '06 #1
2 9955
ni*****@gmail.com said:

[OT stuff snipped]
on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89
A diagnostic is required - and gcc gives one when invoked in conforming
mode:

foo.c:8: `intptr_t' undeclared (first use in this function)
Is any new standard for C published after C99?
Not yet. Give them time.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Aug 7 '06 #2
ni*****@gmail.com writes:
Isn't intptr_t part of the latest ISO C++?
It is part of the C99 standard but C++? Has any new standard for C++
after C++ 2003 which is almost same as C++98 published?
Which are the compilers that supports it completely?
We don't know. This is comp.lang.c. comp.lang.c++ is down the hall,
third door on the left, just past the water cooler.
on gcc (GCC) 3.3.3 (SuSE Linux) I dont get any error when using
intptr_t even after specifying -std=c89

http://www.informit.com/guides/conte...eqNum=223&rl=1
intptr_t is defined in <stdint.h>, which is a new standard header in
C99. As far as C89/C90 is concerned, <stdint.his a non-standard
header; #including it and using declarations from it doesn't warrant a
warning any more than using any other non-standard header.
Is any new standard for C published after C99?
There's not a full standard, but there have been two Technical
Corrigenda. A version of the C99 standard with TC1 and TC2 merged
into it is freely available as n1124.pdf (Google it).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Aug 7 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by king | last post: by
2 posts views Thread by Richard Tobin | last post: by
13 posts views Thread by softwaredoug | last post: by
31 posts views Thread by Francine.Neary | last post: by
31 posts views Thread by Chris Thomasson | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.