Searched refs:loclstr (Results 1 – 2 of 2) sorted by relevance
82 char loclstr[STRING_BUFFER_LENGTH*3+1]; // UTF-8 encoding is max 3 bytes per UCS2 char. in utf16_to_utf8() local83 char *locp = loclstr; in utf16_to_utf8()88 loclstr[0]='\0'; in utf16_to_utf8()95 loclstr[STRING_BUFFER_LENGTH*3] = '\0'; in utf16_to_utf8()97 …if ((uint8_t) loclstr[0] == 0xEFU && (uint8_t) loclstr[1] == 0xBBU && (uint8_t) loclstr[2] == 0xBF… in utf16_to_utf8()98 return strdup(loclstr+3); in utf16_to_utf8()100 return strdup(loclstr); in utf16_to_utf8()
108 char loclstr[PTP_MAXSTRLEN*3+1]; in ptp_unpack_string() local120 loclstr[0] = '\0'; in ptp_unpack_string()125 dest = loclstr; in ptp_unpack_string()126 destlen = sizeof(loclstr)-1; in ptp_unpack_string()137 loclstr[i] = '?'; in ptp_unpack_string()139 loclstr[i] = dtoh16a(&data[offset+1+2*i]); in ptp_unpack_string()141 dest = loclstr+length; in ptp_unpack_string()144 loclstr[sizeof(loclstr)-1] = '\0'; /* be safe? */ in ptp_unpack_string()145 return(strdup(loclstr)); in ptp_unpack_string()