ARM Technical Support Knowledge Articles

NON-REENTRANT PRINTF

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

Is the printf() in the library reentrant or an ordinary routine? If it is a reentrant routine, is there a non-reentrant printf()?

ANSWER

printf() is non-reentrant. Caution must therefore be used when calling printf() in an ISR or other situations where printf() may be invoked while it is already executing.

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-07-15 12:17:33

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential