Changeset 19d007e in mainline
- Timestamp:
- 2011-08-21T08:18:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6045ecf
- Parents:
- fcfac250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fmtutil/fmtutil.c
rfcfac250 r19d007e 131 131 if (!space) word_chars++; 132 132 } 133 if (words == 0) { 134 return EOK; 135 } 133 size_t done_words = 0; 134 size_t done_chars = 0; 135 if (words == 0) 136 goto skip_words; 136 137 size_t excess_spaces = width - word_chars - (words-1); 137 138 space = true; 138 139 i = 0; 139 size_t done_words = 0;140 size_t done_chars = 0;141 140 size_t j; 142 141 while (i < len) { … … 160 159 done_words++; 161 160 } 161 skip_words: 162 162 while (done_chars < width) { 163 163 putchar(' ');
Note:
See TracChangeset
for help on using the changeset viewer.