Article View: es.comp.os.linux.programacion
Article #5812Re: tamaño en bytes
From: Julián Albo
Date: Mon, 08 Sep 2003 17:55
Date: Mon, 08 Sep 2003 17:55
22 lines
1679 bytes
1679 bytes
Fernando Arbeiza escribió: > 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 > y lo más probable es que sea de 16 bits. Ops, mal día, en que estaría yo pensando. Efectivamente los valores de limits.h es lo que utilizo. Salu2
Technical Details
Message-ID:
<3F5CC2AA.F26C8475@terra.es>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!50.red-213-96-228.pooles.rima-tde.NET!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:55: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!50.red-213-96-228.pooles.rima-tde.NET!not-for-mail From: Julián Albo <JULIANALBO@terra.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: tamaño en bytes Date: Mon, 08 Sep 2003 19:55:54 +0200 Lines: 22 Message-ID: <3F5CC2AA.F26C8475@terra.es> 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: 50.red-213-96-228.pooles.rima-tde.net (213.96.228.50) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 1063043754 19967596 213.96.228.50 (16 [169296]) X-Mailer: Mozilla 4.8 [es] (X11; U; Linux 2.4.20-4GB i686) X-Accept-Language: en