Lines Matching refs:width
147 static char *str(const char* s, int len, int width)
149 if (width < len)
150 width = len;
152 if (space_left <= width + 1)
155 memset (buf, ' ', width - len);
156 memcpy (buf + width - len, s, len);
157 buf[width] = 0;
161 char* str(const char* s, int width)
163 return str (s, strlen (s), width);
166 char* chr(char ch, int width)
169 return str (&c, 1, width);