Changes in uspace/lib/c/generic/io/vsnprintf.c [7c3fb9b:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/vsnprintf.c
r7c3fb9b r1433ecda 70 70 71 71 if (left == 1) { 72 /* 73 * We have only one free byte left in buffer 72 /* We have only one free byte left in buffer 74 73 * -> store trailing zero 75 74 */ … … 80 79 81 80 if (left <= size) { 82 /* 83 * We do not have enough space for the whole string 81 /* We do not have enough space for the whole string 84 82 * with the trailing zero => print only a part 85 83 * of string … … 94 92 } 95 93 96 /* 97 * Put trailing zero at end, but not count it 94 /* Put trailing zero at end, but not count it 98 95 * into data->len so it could be rewritten next time 99 96 */ … … 107 104 data->len += size; 108 105 109 /* 110 * Put trailing zero at end, but not count it 106 /* Put trailing zero at end, but not count it 111 107 * into data->len so it could be rewritten next time 112 108 */ … … 144 140 145 141 if (left == 1) { 146 /* 147 * We have only one free byte left in buffer 142 /* We have only one free byte left in buffer 148 143 * -> store trailing zero 149 144 */ … … 159 154 } 160 155 161 /* 162 * Put trailing zero at end, but not count it 156 /* Put trailing zero at end, but not count it 163 157 * into data->len so it could be rewritten next time 164 158 */
Note:
See TracChangeset
for help on using the changeset viewer.