Searched refs:padto (Results 1 – 2 of 2) sorted by relevance
/external/toybox/lib/ |
D | linestack.c | 178 int draw_trim_esc(char *str, int padto, int width, char *escmore, in draw_trim_esc() argument 181 int apad = abs(padto), len = utf8len(str); in draw_trim_esc() 183 if (padto>=0 && len>width) str += utf8skip(str, len-width); in draw_trim_esc() 187 if (padto>0 && apad>len) printf("%*s", apad-len, ""); in draw_trim_esc() 189 if (padto<0 && apad>len) printf("%*s", apad-len, ""); in draw_trim_esc() 195 int draw_trim(char *str, int padto, int width) in draw_trim() argument 197 return draw_trim_esc(str, padto, width, 0, 0); in draw_trim()
|
D | lib.h | 316 int draw_trim_esc(char *str, int padto, int width, char *escmore, 318 int draw_trim(char *str, int padto, int width);
|