Changeset b45c443 in mainline for generic/src/printf/printf_core.c
- Timestamp:
- 2006-06-13T14:26:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3222efd
- Parents:
- 279952c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/printf/printf_core.c
r279952c rb45c443 28 28 */ 29 29 30 /** @addtogroup generic 31 * @{ 32 */ 30 33 /** 31 * @file print.c34 * @file 32 35 * @brief Printing functions. 33 36 */ … … 101 104 * @param count 102 105 * @param ps output method and its data 103 * @return number o rprinted characters106 * @return number of printed characters 104 107 */ 105 108 static int printf_putnchars(const char * buf, size_t count, struct printf_spec *ps) … … 111 114 * @param str string to print 112 115 * @param ps write function specification and support data 113 * @return number o rprinted characters116 * @return number of printed characters 114 117 */ 115 118 static int printf_putstr(const char * str, struct printf_spec *ps) … … 129 132 * @param c one character 130 133 * @param ps output method 131 * @return number o rprinted characters134 * @return number of printed characters 132 135 */ 133 136 static int printf_putchar(int c, struct printf_spec *ps) … … 150 153 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { 151 154 while (--width > 0) { /* one space is consumed by character itself hence predecrement */ 152 /* FIXME: painful slow */153 155 if (printf_putchar(' ', ps) > 0) 154 156 ++counter; … … 717 719 } 718 720 721 722 /** @} 723 */ 724
Note:
See TracChangeset
for help on using the changeset viewer.