Searched refs:mbs_len (Results 1 – 2 of 2) sorted by relevance
/third_party/ntfs-3g/libntfs-3g/ |
D | unistr.c | 910 int mbs_len; in ntfs_ucstombs() local 925 mbs_len = outs_len; in ntfs_ucstombs() 926 if (mbs && !mbs_len) { in ntfs_ucstombs() 934 mbs_len = (ins_len + 1) * MB_CUR_MAX; in ntfs_ucstombs() 935 mbs = ntfs_malloc(mbs_len); in ntfs_ucstombs() 946 if ((int)(o + MB_CUR_MAX) > mbs_len) { in ntfs_ucstombs() 952 tc = ntfs_malloc((mbs_len + 64) & ~63); in ntfs_ucstombs() 955 memcpy(tc, mbs, mbs_len); in ntfs_ucstombs() 956 mbs_len = (mbs_len + 64) & ~63; in ntfs_ucstombs()
|
/third_party/exfatprogs/lib/ |
D | libexfat.c | 238 size_t mbs_len, out_len, i; in exfat_utf16_enc() local 241 mbs_len = mbstowcs(NULL, in_str, 0); in exfat_utf16_enc() 242 if (mbs_len == (size_t)-1) { in exfat_utf16_enc() 248 wcs = calloc(mbs_len+1, sizeof(wchar_t)); in exfat_utf16_enc() 253 if (mbstowcs(wcs, in_str, mbs_len+1) == (size_t)-1) { in exfat_utf16_enc() 261 for (i = 0, out_len = 0; i < mbs_len; i++) { in exfat_utf16_enc()
|