This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
printf() and _write() in newlib-nano
- From: massimiliano cialdi <massimiliano dot cialdi at powersoft dot it>
- To: <newlib at sourceware dot org>
- Date: Wed, 19 Apr 2017 10:55:38 +0200
- Subject: printf() and _write() in newlib-nano
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=powersoft.it;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I use newlib-nano in an embedded project.
I have implemented my version of _write() to make printf() output chars
to UART.
I wonder if a single call of printf() results in a single call of
_write(), or, otherwise _write() can be called more than once by printf().
best regards
Max