Lines Matching refs:end

297 	char *pos = buf, *end = buf + buf_size;  in wpa_snprintf_hex_sep()  local
304 ret = os_snprintf(pos, end - pos, "%02x%c", in wpa_snprintf_hex_sep()
306 if (os_snprintf_error(end - pos, ret)) { in wpa_snprintf_hex_sep()
307 end[-1] = '\0'; in wpa_snprintf_hex_sep()
321 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex() local
326 ret = os_snprintf(pos, end - pos, uppercase ? "%02X" : "%02x", in _wpa_snprintf_hex()
328 if (os_snprintf_error(end - pos, ret)) { in _wpa_snprintf_hex()
329 end[-1] = '\0'; in _wpa_snprintf_hex()
334 end[-1] = '\0'; in _wpa_snprintf_hex()
479 char *end = txt + maxlen; in printf_encode() local
483 if (txt + 4 >= end) in printf_encode()
515 txt += os_snprintf(txt, end - txt, "\\x%02x", in printf_encode()
846 char *buf, *pos, *end; in freq_range_list_str() local
859 end = buf + maxlen; in freq_range_list_str()
865 res = os_snprintf(pos, end - pos, "%s%u", in freq_range_list_str()
868 res = os_snprintf(pos, end - pos, "%s%u-%u", in freq_range_list_str()
871 if (os_snprintf_error(end - pos, res)) { in freq_range_list_str()
1063 const char *end, *token = str; in cstr_token() local
1077 end = token + 1; in cstr_token()
1079 while (*end && !os_strchr(delim, *end)) in cstr_token()
1080 end++; in cstr_token()
1082 *last = end; in cstr_token()
1213 char *tmp, *res, *end; in ssid_parse() local
1223 end = os_strchr(tmp, ' '); in ssid_parse()
1224 if (end) in ssid_parse()
1225 *end = '\0'; in ssid_parse()
1227 end = os_strchr(tmp + 1, '"'); in ssid_parse()
1228 if (!end) { in ssid_parse()
1233 end[1] = '\0'; in ssid_parse()
1278 const char *pos, *end; in get_param() local
1287 end = os_strchr(pos, ' '); in get_param()
1288 if (end) in get_param()
1289 len = end - pos; in get_param()