🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #13082

Re: funcion ascii

#13082
From: Jesús Carrete Montaña
Date: Sat, 24 Mar 2001 08:52
29 lines
2212 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "amphora" == amphora  <amphora@desdemona.dhis.org> writes:

    amphora> Por ejemplo se pulsa la tecla 'k' y obtengo 107, y con el
    amphora> codigo 107 obtener la k.  Todavia no lo he probado, pero
    amphora> creo que se puede hacer con 'atoi'

        Disc�lpame si no he entendido bien lo que preguntas, pero
107=='k' , para ello no necesitas ninguna conversi�n m�s all� de un
cast a char. Atoi es otra cosa, por ejemplo 7==atoi("7"),
666==atoi("666") , etc. Es decir, convierte una cadena que contiene un
n�mero en el n�mero propiamente dicho.

Un saludo.
- -- 
"!Dios aleje de nosotros la serenidad de los ignorantes!
�Dios aparte de nosotros la paz de los cobardes!" (De Gasparin)
Jes�s Carrete Monta�a (Kuantiko) <kuantiko@escomposlinux.org>
LRU #158442 -> I use free software. | PGP Key -> pgp.rediris.es
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Processed by Mailcrypt and GnuPG

iD8DBQE6vGBXfUtQQKOnZ1IRAih6AJ9q8lDc0GSDCgyom9ZRj4qRtkMfSwCg2v5A
1Vp8+xo2eN/gm+W+Z/ehpJc=
=alxj
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87ofurmtuv.fsf@relativistic.homeip.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!3-coru-x5.libre.retevision.ES!not-for-mail
References: <i44a99.3k.ln@desdemona.dhis.org> <3ab97d97_4@news.arrakis.es> <htsd99.421.ln@desdemona.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,d8fb965fb22b7820
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-03-24 01:46:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!3-coru-x5.libre.retevision.ES!not-for-mail
From: kuantiko@escomposlinux.org (Jesús Carrete
  Montaña)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: funcion ascii
Date: 24 Mar 2001 09:52:40 +0100
Lines: 29
Sender: kuantiko@relativistic.homeip.net
Message-ID: <87ofurmtuv.fsf@relativistic.homeip.net>
References: <i44a99.3k.ln@desdemona.dhis.org> <3ab97d97_4@news.arrakis.es> <htsd99.421.ln@desdemona.dhis.org>
NNTP-Posting-Host: 3-coru-x5.libre.retevision.es (62.83.56.3)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 985426903 1407246 62.83.56.3 (16 [54696])
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7