Lines Matching refs:str
314 * @str: Pointer to string to convert
320 void wpa_unicode2ascii_inplace(TCHAR *str)
323 char *dst = (char *) str;
324 while (*str)
325 *dst++ = (char) *str++;
331 TCHAR * wpa_strdup_tchar(const char *str)
335 buf = os_malloc((strlen(str) + 1) * sizeof(TCHAR));
338 wsprintf(buf, L"%S", str);
341 return os_strdup(str);
396 size_t printf_decode(u8 *buf, size_t maxlen, const char *str)
398 const char *pos = str;
516 char *str;
522 str = dup_binstr(value, *len);
523 if (str == NULL)
525 return str;
528 char *tstr, *str;
539 str = os_malloc(tlen + 1);
540 if (str == NULL) {
545 *len = printf_decode((u8 *) str, tlen + 1, tstr);
548 return str;
550 u8 *str;
555 str = os_malloc(tlen + 1);
556 if (str == NULL)
558 if (hexstr2bin(value, str, tlen)) {
559 os_free(str);
562 str[tlen] = '\0';
564 return (char *) str;
832 void str_clear_free(char *str)
834 if (str) {
835 size_t len = os_strlen(str);
836 os_memset(str, 0, len);
837 os_free(str);