New API function ntfs_ucsnlen() and removal of mkntfs.c/ucsnlen().

(Logical change 1.52)
edge.strict_endians
cantab.net!aia21 2002-12-25 19:17:56 +00:00
parent 83cf426360
commit 16e4e8717a
1 changed files with 0 additions and 20 deletions

View File

@ -367,26 +367,6 @@ s64 ntfs_rlwrite(int fd, const runlist *rl, const char *val,
return total;
}
/**
* ucslen - determine the length of a fixed-size unicode-character string
* @s: pointer to unicode-character string
*
* Return the number of unicode-characters in @s up to a maximum of maxlen
* unicode-characters, not including the terminating (uchar_t)'\0'. If there
* is no (uchar_t)'\0' between s and s+maxlen, maxlen is returned.
*
* This function never looks beyond s+maxlen.
*/
int ucsnlen(const uchar_t *s, int maxlen)
{
int i;
for (i = 0; i < maxlen; i++)
if (!s[i])
break;
return i;
}
/**
* ucstos - convert unicode-character string to ASCII
* @dest: points to buffer to receive the converted string