Article View: es.comp.os.linux.programacion
Article #10734Re: Inversion de bits
From: Ángel Suárez Rivero
Date: Fri, 08 Feb 2002 15:14
Date: Fri, 08 Feb 2002 15:14
41 lines
1676 bytes
1676 bytes
J.A. Gutierrez wrote:
> *p-- = ( "01"[(c&0x01)] );
What's this?: "01"[] �?:((( �Un array? �De donde sale?.
Gracias, Saludos
PD.
#include <stdio.h>
#include <stdlib.h>
char tabla[2]={0x01,0x02};
int main(void)
{
char *p;
p=(char *)malloc(2);
/*Ni puta idea*/
*p="01"[1];
printf("%s\n", p);
free(p);
return 0;
}
--
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
owGbwMvMwCR4mlF2Vp79x72Ma04kcekVZ6bnJZaUFqXasFbeDUgsSsnPU0jLL1LI
rVRwzUvPySzO4LLVJRNy1XA6+Lm7+nAWFyXmpafmOJSk5qTmZOal6qUWcxbklySW
5CsY6VUqFGQm53PWUGBPhz0zKwPIAzC/CTIV9zPMU7ypfjl0seSXuFSvXROCH7F5
fem2ZJifuOGfelOH1nE32yfv2hR5Mi6lHTEGAA==
=tKD8
-----END PGP MESSAGE-----
Technical Details
Message-ID:
<c0q04a.dh.ln@127.0.0.1>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!127.0.0.1!nobodyReferences:
<3C61171A.5F9E4911@eq.upc.es> <a3rrec$vtt$1@news.unizar.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,bd33173853cfd14f X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-02-08 10:49:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!newsfeed.bcn.ttd.net!news.mad.ttd.net!127.0.0.1!nobody From: Ángel Suárez Rivero <srangel@teleline.es> Newsgroups: es.comp.os.linux.programacion Subject: Re: Inversion de bits Date: Fri, 08 Feb 2002 15:14:20 +0000 Organization: Telefonica Transmision de Datos Lines: 41 Message-ID: <c0q04a.dh.ln@127.0.0.1> References: <3C61171A.5F9E4911@eq.upc.es> <a3rrec$vtt$1@news.unizar.es> NNTP-Posting-Host: 213-99-68-148.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit User-Agent: KNode/0.6.1