Article View: es.comp.os.linux.programacion
Article #6905Re: fork/pipes/etc
From: Fernando Arbeiza
Date: Mon, 05 May 2003 20:23
Date: Mon, 05 May 2003 20:23
13 lines
1444 bytes
1444 bytes
Hola:
On Mon, 5 May 2003 21:41:00 +0200, Rafael Ch <cycdrone@hotmail.com> wrote:
> La forma m�s f�cil de leer palabras desde stdin (la entrada est�ndar) es con
> scanf("cadena de formato", char*).
El problema es que eso (tanto como gets) es un firme candidato a un
desbordamiento de buffer. Mi opini�n, utilizad fgets.
Un saludo.
--
Fernando Arbeiza <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux: <URL: http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID:
<slrnbbdi1r.4h6.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:
<e2eee5e.0305030241.22dfd0e1@posting.google.com> <b96ep0$ba5$1@tro.champinet.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,75f1f6e109a33099 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-05-05 13:25:43 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: fork/pipes/etc Date: Mon, 5 May 2003 22:23:23 +0200 Lines: 13 Message-ID: <slrnbbdi1r.4h6.arbeizaf@jupiter.olimpo.homelinux.org> References: <e2eee5e.0305030241.22dfd0e1@posting.google.com> <b96ep0$ba5$1@tro.champinet.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: fu-berlin.de 1052166342 17088055 81.203.248.186 (16 [148301]) X-Orig-Path: jupiter.olimpo.homelinux.org!news User-Agent: slrn/0.9.7.4 (Linux)