Changeset 2595dab in mainline for uspace/lib/libc/generic/io/printf.c
- Timestamp:
- 2009-06-03T19:26:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d00ae4c
- Parents:
- ca3ba3a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/io/printf.c
rca3ba3a r2595dab 35 35 #include <io/printf_core.h> 36 36 #include <stdio.h> 37 #include <stdio.h>38 37 39 38 /** Print formatted text. 40 * @param fmt format string 39 * 40 * @param stream Output stream 41 * @param fmt Format string 42 * 41 43 * \see For more details about format string see printf_core. 44 * 45 */ 46 int fprintf(FILE *stream, const char *fmt, ...) 47 { 48 va_list args; 49 va_start(args, fmt); 50 51 int ret = vfprintf(stream, fmt, args); 52 53 va_end(args); 54 55 return ret; 56 } 57 58 /** Print formatted text to stdout. 59 * 60 * @param fmt Format string 61 * 62 * \see For more details about format string see printf_core. 63 * 42 64 */ 43 65 int printf(const char *fmt, ...) 44 66 { 45 int ret;46 67 va_list args; 47 48 68 va_start(args, fmt); 49 50 ret = vprintf(fmt, args);69 70 int ret = vprintf(fmt, args); 51 71 52 72 va_end(args); 53 73 54 74 return ret; 55 75 }
Note:
See TracChangeset
for help on using the changeset viewer.