Article View: es.comp.os.linux.programacion
Article #5811Re: tamaño en bytes
From: Alvaro G. Vicario
Date: Mon, 08 Sep 2003 17:48
Date: Mon, 08 Sep 2003 17:48
19 lines
2105 bytes
2105 bytes
*** Fernando Arbeiza <arbeizaf@ono.com> escribi�/wrote (08 sep 2003): > No, esto no funciona (en algunos compiladores puede), sizeof es un > operador y el preprocesador no tiene ni idea de tipos de datos. > Adem�s, espero que no quieras un short int de 16 bytes ;-) > > Sin embargo, se puede intentar de otra manera > > #include <limits.h> > > #if SHRT_MAX == 32767 Concretamente, en <limits.h> y <float.h> hay diversas constantes que indican todos los par�metros de los tipos num�ricos. -- --------------------------------------------------------------------------- Alvaro G. Vicario Sonr�e, que te vamos a hacer ICQ Burgos, Spain una foto para la esquela 46788716 Mi paginita de humor <> http://www.demogracia.com/ <> My little humour site
Technical Details
Message-ID:
<Xns93F0C991D9B28kAlvaro@130.133.1.4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!cable72a032.usuarios.retecal.ES!not-for-mailReferences:
<bji3ts$iv42b$1@ID-148083.news.uni-berlin.de> <20030908143734.4C5FC1EA.NOFFLE@BlackSpark.local> <bjia6i$ivqa8$1@ID-148083.news.uni-berlin.de> <3F5CAD25.AE9F5BD5@terra.es> <slrnblpcaf.1kr.arbeizaf@jupiter.olimpo.homelinux.org>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,6bded6c0142ea4bd
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-09-08 10:48:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!cable72a032.usuarios.retecal.ES!not-for-mail
From: "Alvaro G. Vicario" <kAlvaro.NOSPAMTHANKS@terra.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: tamaño en bytes
Date: Mon, 08 Sep 2003 19:48:54 +0200
Organization: www.demogracia.com
Lines: 19
Message-ID: <Xns93F0C991D9B28kAlvaro@130.133.1.4>
References: <bji3ts$iv42b$1@ID-148083.news.uni-berlin.de> <20030908143734.4C5FC1EA.NOFFLE@BlackSpark.local> <bjia6i$ivqa8$1@ID-148083.news.uni-berlin.de> <3F5CAD25.AE9F5BD5@terra.es> <slrnblpcaf.1kr.arbeizaf@jupiter.olimpo.homelinux.org>
NNTP-Posting-Host: cable72a032.usuarios.retecal.es (213.254.72.32)
X-Trace: news.uni-berlin.de 1063043334 19613345 213.254.72.32 (16 [157797])
User-Agent: Xnews/5.04.25
X-Face: .C`vD9+*+~'&@k[TU9p.IF3|d`I.`,Gko2-/\z2j*e'FcF<&{}iU}R~4n~]?Hrk"wvAilA<0f2]E$sP2&E(2d[r//<UDA\a]5[PWd@SUe`GY@"1RhzL'@GT$o@_8M7!`v-iSi|aHhBE)7/FPNa3}&`nD)s7+YM!Y|-c,?tl{L21TxO5uilXZY<n!K2PjnBPo!'e/R1X;YEbN()vd/,r8E5g6F~D)~eFNtWgsD~#e<4{BrYcr0K