🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Leer toda una línea en una variable

#13823
From: Jesús Carrete Montaña
Date: Sat, 13 Jan 2001 22:05
34 lines
2583 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Como Nostradamus profetiz�, el Sat, 13 Jan 2001 13:42:57 +0100
 Maribel Ferreiro dijo:
> Buenas,
>
> habiendo definido una variable     char *a;
>
> �qu� funci�n puedo usar para que en esa variable ponga el contenido de
>toda una l�nea que se introduce por teclado, en la que puede haber
>varias palabras, y que se acaba al pulsar enter?

	Me olvid� en el mensaje anterior: en C se puede hacer con fgets().

Un saludo.
- -- 
 -----------------------------------------------------------------------------
)  .~. ttt      () |/    ,_|-.|                                               (
)  /V\  tu u    () |\L|(||||_||<() @ escomposlinux.org                        (
) // \\ tu ux x () Linux Registered User #158442.                             (
)/(   )\ uuu x  () Public PGP Key avaliable via e-mail and in pgp.rediris.es. (
) ^`~'^     x x () "I use free software."                                     (
 -----------------------------------------------------------------------------
)  http://www.escomposlinux.org/anti-spam   ()   Mant�n limpios tus grupos.   (
 -----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6YNEkfUtQQKOnZ1IRAv9lAKDCOodtVd2VUSb08gETsZ9cUtQxLACgjBf/
cciIDZ3WBjXLdzUnjpTBEQs=
=aMh7
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn961k8m.1md.kuantiko@relativistic.homeip.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!fu-berlin.de!uni-berlin.de!29-coru-x7.libre.retevision.ES!not-for-mail
References: <3A604D4F.5B2590D3@wanadoo.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e1ed57d949d4ac75
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-01-13 15:46:08 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newscore.gigabell.net!fu-berlin.de!uni-berlin.de!29-coru-x7.libre.retevision.ES!not-for-mail
From: kuantiko@escomposlinux.org (Jesús Carrete Montaña)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Leer toda una línea en una variable
Date: Sat, 13 Jan 2001 23:05:24 +0100
Lines: 34
Message-ID: <slrn961k8m.1md.kuantiko@relativistic.homeip.net>
References: <3A604D4F.5B2590D3@wanadoo.es>
Reply-To: kuantiko@escomposlinux.org
NNTP-Posting-Host: 29-coru-x7.libre.retevision.es (62.83.54.29)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 979429545 11655587 62.83.54.29 (16 [54696])
User-Agent: slrn/0.9.6.2 (Linux)