- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX Itanium 64 - C Support for int 32
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 08:27 PM
08-12-2009 08:27 PM
HP-UX Itanium 64 - C Support for int 32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 09:26 PM
08-12-2009 09:26 PM
Re: HP-UX Itanium 64 - C Support for int 32
Whose C? For what?
If I _knew_ what your "int32" was, then I
might be able to suggest a standard type to
use for it. I can _guess_ that it's a 32-bit
signed integer, so I'd guess that "int" would
be suitable.
Invisible code can be hard for us
non-psychics to interpret.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 10:45 PM
08-12-2009 10:45 PM
Re: HP-UX Itanium 64 - C Support for int 32
I mean written in ANSI-C programming language, i though C was obvious.
i'm compiling on HP Itanium 64bit, and i need to define an integer variable of 32 bit length, can any one help in this, for example in Solaris i use something like
typedef signed int32 TYP_INT32;
thanks for your reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2009 11:26 PM
08-12-2009 11:26 PM
Re: HP-UX Itanium 64 - C Support for int 32
> of 32 bit length [...]
Then say that. With my weak psychic powers,
I don't know what "int32" means to you.
> [...] i though C was obvious. [...]
C may be obvious. What you want is another
question.
> in Solaris i use something like
> typedef signed int32 TYP_INT32;
Why? What's wrong with plain, old,
ANSI-standard "int"?
dyi # cat siz.c
#include
main()
{
printf( " char = %d, int = %d, long = %d, long long = %d, void* = %d.\n",
sizeof( char), sizeof( int), sizeof( long),
sizeof( long long), sizeof( void *));
}
dyi # cc -o siz siz.c
dyi # ./siz
char = 1, int = 4, long = 4, long long = 8, void* = 4.
Looks to me like 32 bits.
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # cc -V
(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2009 12:48 AM - edited 08-28-2011 09:05 PM
08-13-2009 12:48 AM - edited 08-28-2011 09:05 PM
Re: HP-UX Integrity - C Support for int32
You can just use int. If you want to use int32_t, you can include <inttypes.h>.