This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: EB40 Serial port #1 question.


In my docs here, 'r+' stands for "Opens for both reading and writing.
(The file must exist.)"

Appending is 'a'.

Mathieu Routhier

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of
harri.siirtola@vtt.fi
Sent: Thursday, October 11, 2001 6:51 AM
To: felixwong@i-technologies.cc; Jonathan Larmour
Cc: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] EB40 Serial port #1 question.

At 09:29 11.10.2001 +0800, felixwong@i-technologies.cc wrote:
>Now have no problem in output part using fprintf & other file
operations.
>What if I want to have a READ/WRITE device open?
>use "r+w" instead of "rw" or "wr"?

AFAIK, r+ means "read and append", so the plus stands for writing,
doesn't it?

>
>FW

	Harri


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]