Changeset 2595dab in mainline for uspace/lib/libc/generic/io/printf_core.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_core.c
rca3ba3a r2595dab 174 174 static int print_char(const char ch, int width, uint32_t flags, printf_spec_t *ps) 175 175 { 176 count_t counter = 0;176 size_t counter = 0; 177 177 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { 178 178 while (--width > 0) { … … 212 212 static int print_wchar(const wchar_t ch, int width, uint32_t flags, printf_spec_t *ps) 213 213 { 214 count_t counter = 0;214 size_t counter = 0; 215 215 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { 216 216 while (--width > 0) { … … 255 255 256 256 /* Print leading spaces. */ 257 count_t strw = str_length(str);257 size_t strw = str_length(str); 258 258 if (precision == 0) 259 259 precision = strw; 260 260 261 261 /* Left padding */ 262 count_t counter = 0;262 size_t counter = 0; 263 263 width -= precision; 264 264 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 311 311 312 312 /* Left padding */ 313 count_t counter = 0;313 size_t counter = 0; 314 314 width -= precision; 315 315 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 433 433 434 434 width -= precision + size - number_size; 435 count_t counter = 0;435 size_t counter = 0; 436 436 437 437 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 596 596 size_t j = 0; /* Index to the first not printed nonformating character */ 597 597 598 count_t counter = 0;/* Number of characters printed */598 size_t counter = 0; /* Number of characters printed */ 599 599 int retval; /* Return values from nested functions */ 600 600
Note:
See TracChangeset
for help on using the changeset viewer.