Searched defs:old_length (Results 1 - 1 of 1) sorted by relevance
/systemd/src/basic/ |
H A D | string-util.c | 415 static char *ascii_ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { argument 423 if (old_length <= 3 || old_length <= new_length) 424 return strndup(s, old_length); 440 s + old_length - (new_length - x - 3), 446 char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigned percent) { argument 459 return ascii_ellipsize_mem(s, old_length, new_length, percent); 461 if (old_length <= 3 || old_length <= new_length) 462 return strndup(s, old_length); [all...] |
Completed in 311 milliseconds