Lines Matching refs:len
25 size_t len = 0; in cpu_set_to_string() local
32 if (!GREEDY_REALLOC(str, len + 1 + DECIMAL_STR_MAX(int))) in cpu_set_to_string()
35 r = sprintf(str + len, len > 0 ? " %d" : "%d", i); in cpu_set_to_string()
37 len += r; in cpu_set_to_string()
47 size_t len = 0; in cpu_set_to_range_string() local
61 if (!GREEDY_REALLOC(str, len + 2 + 2 * DECIMAL_STR_MAX(unsigned))) in cpu_set_to_range_string()
65 … r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end); in cpu_set_to_range_string()
67 r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start); in cpu_set_to_range_string()
69 len += r; in cpu_set_to_range_string()
73 if (!GREEDY_REALLOC(str, len + 2 + 2 * DECIMAL_STR_MAX(int))) in cpu_set_to_range_string()
77 … r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end); in cpu_set_to_range_string()
79 r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start); in cpu_set_to_range_string()