Deutsch   English   Français   Italiano  
<103tfrs$22bsu$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: VMS
Date: Mon, 30 Jun 2025 07:54:36 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <103tfrs$22bsu$1@dont-email.me>
References: <wCqdnYde9MIbmND1nZ2dnZfqnPadnZ2d@giganews.com>
	<PpudnVnCnvuYxc_1nZ2dnZfqnPudnZ2d@giganews.com>
	<wwva564xjps.fsf@LkoBDZeT.terraraq.uk>
	<4_GdncCsf-Nqe8n1nZ2dnZfqnPSdnZ2d@giganews.com>
	<wwv5xgqkfl9.fsf@LkoBDZeT.terraraq.uk> <103392c$lpbg$5@dont-email.me>
	<1033o4a$1qj6$3@dont-email.me> <1033tv1$3aqu$3@dont-email.me>
	<1034pj8$a74s$1@dont-email.me> <mbmm2nFdsgcU2@mid.individual.net>
	<slrn105cajs.4vj.spamtrap42@one.localnet>
	<slrn105g20l.3q8n7.candycanearter07@candydeb.host.invalid>
	<slrn105k75h.h13.spamtrap42@one.localnet>
	<slrn105sci1.1ibsg.candycanearter07@candydeb.host.invalid>
	<wwv4iw1bpor.fsf@LkoBDZeT.terraraq.uk>
	<fPmcnaKaU81_TsP1nZ2dnZfqn_adnZ2d@giganews.com>
	<mc83bhFcp3sU1@mid.individual.net>
	<vAmdnSM-9LvohcL1nZ2dnZfqnPGdnZ2d@giganews.com>
	<wwva55sfgln.fsf@LkoBDZeT.terraraq.uk>
	<TqicnUo8-prXLf31nZ2dnZfqnPGdnZ2d@giganews.com>
	<wwvplenj9sn.fsf@LkoBDZeT.terraraq.uk>
	<cs6dnYG6Hbc5Wvz1nZ2dnZfqn_idnZ2d@giganews.com>
	<103teq1$220b9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Jun 2025 09:54:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e7340121927b55508c76d666a3d900cd";
	logging-data="2174878"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+wiEIeOh2/R2+LWK+mT+cE"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:xwj2Ts1AV6pCJl1yce83isUtpR0=

On Mon, 30 Jun 2025 08:36:33 +0100, The Natural Philosopher wrote:

> I can find no agreement was to what counts as a short, long, int, at
> all.

The convention in the 64-bit *nix world is called “LP64”. This means that 
“long int” and pointers are 64 bits, while int is 32 bits.

Microsoft compilers for 64-bit, on the other hand, follow “LLP64”. This 
means that “int” and “long int” are both 32 bits; if you want a 64-bit 
integer, you have to say “long long int”.

> If it matters, use the length specific variable names.

#include <stdint.h> gives you explicit names for the various sizes, in 
both signed and unsigned alternatives.