Searched refs:loclstr (Results 1 – 2 of 2) sorted by relevance
83 char loclstr[STRING_BUFFER_LENGTH*3+1]; // UTF-8 encoding is max 3 bytes per UCS2 char. in utf16_to_utf8() local84 char *locp = loclstr; in utf16_to_utf8()89 loclstr[0]='\0'; in utf16_to_utf8()96 loclstr[STRING_BUFFER_LENGTH*3] = '\0'; in utf16_to_utf8()98 …if ((uint8_t) loclstr[0] == 0xEFU && (uint8_t) loclstr[1] == 0xBBU && (uint8_t) loclstr[2] == 0xBF… in utf16_to_utf8()99 return strdup(loclstr+3); in utf16_to_utf8()101 return strdup(loclstr); in utf16_to_utf8()
135 char loclstr[PTP_MAXSTRLEN*3+1]; in ptp_unpack_string() local153 loclstr[0] = '\0'; in ptp_unpack_string()158 dest = loclstr; in ptp_unpack_string()159 destlen = sizeof(loclstr)-1; in ptp_unpack_string()170 loclstr[i] = '?'; in ptp_unpack_string()172 loclstr[i] = dtoh16a(&data[offset+1+2*i]); in ptp_unpack_string()174 dest = loclstr+length; in ptp_unpack_string()177 loclstr[sizeof(loclstr)-1] = '\0'; /* be safe? */ in ptp_unpack_string()178 return(strdup(loclstr)); in ptp_unpack_string()