Article View: es.comp.os.linux.programacion
Article #10102Re: Leyendo datos puerto serie
From: NotFound
Date: Mon, 25 Mar 2002 01:55
Date: Mon, 25 Mar 2002 01:55
17 lines
1454 bytes
1454 bytes
Jesús Ángel wrote: > > In article <3C9E3738.DD506832@hobbiton.org>, NotFound wrote: > >> leidos = read (fd, buffer, sizeof (buffer)); > >> buffer[leidos] = 0; > > > > Si has leido sizeof (buffer) bytes, el 0 lo escribes fuera del buffer. > > Realmente sólo se lee un byte en cada llamada a read(2). Como leidos=1 ¿Qué garantía tienes de que vaya a ser siempre así? Salu2
Technical Details
Message-ID:
<3C9E83A5.D4DB3E60@hobbiton.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news.ebone.net!news1.ebone.net!cesio.mundo-r.com!not-for-mailReferences:
<slrna9s9rj.1bh.jpozdom@sol.linux.bogus> <3C9E3738.DD506832@hobbiton.org> <slrna9soc7.4rq.jpozdom@sol.linux.bogus>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,5223a508e1e82079 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-03-25 10:53:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news.ebone.net!news1.ebone.net!cesio.mundo-r.com!not-for-mail From: NotFound <blassic@hobbiton.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: Leyendo datos puerto serie Date: Mon, 25 Mar 2002 02:55:49 +0100 Organization: Another Netscape Collabra Server User Lines: 17 Message-ID: <3C9E83A5.D4DB3E60@hobbiton.org> References: <slrna9s9rj.1bh.jpozdom@sol.linux.bogus> <3C9E3738.DD506832@hobbiton.org> <slrna9soc7.4rq.jpozdom@sol.linux.bogus> NNTP-Posting-Host: cm64134.red.mundo-r.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: en