| 4156 | print width of WIDTH columns. */ |
| 4157 | |
| 4158 | static void |
| 4159 | format_user_or_group (char const *name, uintmax_t id, int width) |
| 4160 | { |
| 4161 | if (name) |
| 4162 | { |
| 4163 | int name_width = mbswidth (name, MBSWIDTH_FLAGS); |
| 4164 | int width_gap = name_width < 0 ? 0 : width - name_width; |
| 4165 | int pad = MAX (0, width_gap); |
| 4166 | dired_outstring (name); |
| 4167 | |
| 4168 | do |
| 4169 | dired_outbyte (' '); |
| 4170 | while (pad--); |
| 4171 | } |
| 4172 | else |
| 4173 | dired_pos += printf ("%*ju ", width, id); |
| 4174 | } |
| 4175 | |
| 4176 | /* Print the name or id of the user with id U, using a print width of |
| 4177 | WIDTH. */ |
no test coverage detected