Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 A reentrant version of printf().
29 _printf_r (struct _reent *ptr, const char *fmt, ...)
35 ret = _vfprintf_r (ptr, _stdout_r(ptr), fmt, ap);
43 Print formatted data to stdout.
44 Prints to standard output a sequence of arguments formatted as the format argument specifies.
45 @return On success, the total number of characters printed is returned.
46 On error, a negative number is returned.
47 @param fmt String that contains the text to be printed.
48 Optionally it can contain format tags that are substituted
49 by the values specified in subsequent argument(s) and formatted as requested.
52 printf (const char *fmt, ...)
58 ret = vfprintf (__stdout(), fmt, ap);
63 #endif /* ! _REENT_ONLY */