04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Standard C Implementation Definition<br />

Note<br />

• A whitespace character is any character where the result of isspace() is true.<br />

• A double quote or backslash character \ inside double quotes must be preceded<br />

by a backslash character.<br />

• An input/output redirection is not recognized inside double quotes.<br />

Interactive device<br />

In a non hosted implementation of the <strong>ARM</strong> C library, the term interactive device might<br />

be meaningless. The generic <strong>ARM</strong> C library supports a pair of devices, both called :tt,<br />

intended to handle keyboard input and VDU screen output. In the generic<br />

implementation:<br />

• no buffering is done on any stream connected to :tt unless input/output<br />

redirection has occurred<br />

• if input/output redirection other than to :tt has occurred, full file buffering is used<br />

except that line buffering is used if both stdout and stderr were redirected to the<br />

same file.<br />

Redirecting standard input, output, and error streams<br />

Using the generic <strong>ARM</strong> C library, the standard input, output and error streams can be<br />

redirected at runtime. For example, if mycopy is a program running on a host debugger<br />

that copies the standard input to the standard output, the following line runs the<br />

program:<br />

mycopy < infile > outfile 2> errfile<br />

and redirects the files as follows:<br />

stdin<br />

stdout<br />

stderr<br />

The standard input stream is redirected to infile.<br />

The standard output stream is redirected to outfile.<br />

The standard error stream is redirected to errfile.<br />

The permitted redirections are:<br />

0< filename Reads stdin from filename.<br />

< filename Reads stdin from filename.<br />

1> filename Writes stdout to filename.<br />

B-4 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!