Article View: es.comp.os.linux.programacion
Article #5810Re: tamaño en bytes
From: Fernando Arbeiza
Date: Mon, 08 Sep 2003 16:41
Date: Mon, 08 Sep 2003 16:41
21 lines
1684 bytes
1684 bytes
Hola: On Mon, 08 Sep 2003 18:24:05 +0200, Juli�n Albo <JULIANALBO@terra.es> wrote: > #if sizeof (short int) == 16 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. Un saludo. -- Fernando Arbeiza <URL: mailto:arbeizaf@ono.com> Crea tu propio Linux: <URL: http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID:
<slrnblpcaf.1kr.arbeizaf@jupiter.olimpo.homelinux.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!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>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 09:47:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!not-for-mail From: Fernando Arbeiza <arbeizaf@ono.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: tamaño en bytes Date: Mon, 8 Sep 2003 18:41:51 +0200 Lines: 21 Message-ID: <slrnblpcaf.1kr.arbeizaf@jupiter.olimpo.homelinux.org> 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> NNTP-Posting-Host: 81-203-248-186.user.ono.com (81.203.248.186) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 1063039628 20086459 81.203.248.186 (16 [148301]) X-Orig-Path: jupiter.olimpo.homelinux.org!news User-Agent: slrn/0.9.7.4 (Linux)