🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1504

Re: Printf: vaste lengte strings en ints?

#1504
From: Dr.Ruud
Date: Wed, 02 Mar 2005 18:46
27 lines
1881 bytes
Wat Sjoerd A. Schreuder schreef, bleek het
begin  van iets moois; kijk zelf maar:
> Dr.Ruud:

>> bits = 8*sizeof(int)

> Iets correcter is:
>    bits = CHAR_BITS * sizeof(int)

Dank voor deze aanvulling.

Ik twijfel nog wel, het zou namelijk ook zo kunnen zijn
dat sizeof() altijd in eenheden van 8 bits telt.
Even nazoeken...

"For the TMS320F24x, sizeof(char) = sizeof(int) = 1,
with both being 16-bit."

Dus daar moet CHAR_BITS wel 16 zijn. Ook al omdat een
int altijd minimaal 16 bits is. Je aanvulling is dus
inderdaad nodig.

-- 
Affijn, Ruud   `  -  �
               + ` � *
                 � `     Jvr qvg yrrfg,
               �  =  `   fgresg wbatre.
Technical Details
Message-ID: <d0556j.1dk.1@news.isolution.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!195.64.93.190.MISMATCH!feeder.z74.net!news.z74.net!news.rekka.net!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
References: <M5qdnYvpZutbs7nfRVnyjA@scarlet.biz> <d01i4u.14c.1@news.isolution.nl> <CqudnXnc_MjnCbjfRVnyhg@casema.nl> <d050po.130.1@news.isolution.nl> <4225ff1c$0$70620$dbd41001@news.wanadoo.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,f962124bbb04ff22
X-Google-Thread: 107324,f962124bbb04ff22
X-Google-Attributes: gidfcea4,gid107324,public
X-Google-Language: DUTCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!195.64.93.190.MISMATCH!feeder.z74.net!news.z74.net!news.rekka.net!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Message-ID: <d0556j.1dk.1@news.isolution.nl>
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Newsgroups: be.comp.programming,nl.comp.programmeren
References: <M5qdnYvpZutbs7nfRVnyjA@scarlet.biz> <d01i4u.14c.1@news.isolution.nl> <CqudnXnc_MjnCbjfRVnyhg@casema.nl> <d050po.130.1@news.isolution.nl> <4225ff1c$0$70620$dbd41001@news.wanadoo.nl>
Subject: Re: Printf: vaste lengte strings en ints?
Date: Wed, 2 Mar 2005 19:46:08 +0100
Organization: Chaos rules.
X-Newsreader: WMDIYB
X-Archive-Me: please
Approved: yesterday
X-Face: &CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E;NQet`5fe$;=e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
Lines: 29
NNTP-Posting-Host: 194.109.164.102
X-Trace: 1109789405 news.xs4all.nl 28977 [::ffff:194.109.164.102]:33462
X-Complaints-To: abuse@xs4all.nl