Lines Matching refs:strlen
35 int udf_ustr_to_dchars(uint8_t *dest, const struct ustr *src, int strlen) in udf_ustr_to_dchars() argument
37 if ( (!dest) || (!src) || (!strlen) || (src->u_len > strlen) ) in udf_ustr_to_dchars()
44 int udf_ustr_to_char(uint8_t *dest, const struct ustr *src, int strlen) in udf_ustr_to_char() argument
46 if ( (!dest) || (!src) || (!strlen) || (src->u_len >= strlen) ) in udf_ustr_to_char()
63 int udf_dchars_to_ustr(struct ustr *dest, const uint8_t *src, int strlen) in udf_dchars_to_ustr() argument
65 if ( (!dest) || (!src) || (!strlen) || (strlen > UDF_NAME_LEN) ) in udf_dchars_to_ustr()
68 memcpy(dest->u_name, src+1, strlen-1); in udf_dchars_to_ustr()
70 dest->u_len = strlen-1; in udf_dchars_to_ustr()
71 return strlen-1; in udf_dchars_to_ustr()
74 int udf_char_to_ustr(struct ustr *dest, const uint8_t *src, int strlen) in udf_char_to_ustr() argument
76 if ( (!dest) || (!src) || (!strlen) || (strlen >= UDF_NAME_LEN) ) in udf_char_to_ustr()
79 memcpy(dest->u_name, src, strlen); in udf_char_to_ustr()
81 dest->u_len = strlen; in udf_char_to_ustr()
82 return strlen; in udf_char_to_ustr()