.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "BEFS_NLS2UTF" "" "06 October 2005" "" ""
.SH NAME
befs_nls2utf \- Convert NLS string to utf8 encodeing
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int befs_nls2utf (struct super_block * \fIsb\fB, const char * \fIin\fB, int \fIin_len\fB, char ** \fIout\fB, int * \fIout_len\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsb\fB\fR
Superblock
.TP
\fB\fIin\fB\fR
-- undescribed --
.TP
\fB\fIin_len\fB\fR
-- undescribed --
.TP
\fB\fIout\fB\fR
-- undescribed --
.TP
\fB\fIout_len\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
Converts input string \fIsrc\fR, which is in the format of the loaded NLS map,
into a utf8 string.
.PP
The destination string \fIdest\fR is allocated by this function and the caller is
responsible for freeing it with \fBkfree\fR
.PP
On return, *\fIdestlen\fR is the length of \fIdest\fR in bytes.
.PP
On success, the return value is the number of utf8 characters written to
the output buffer \fIdest\fR\&.
.PP
On Failure, a negative number coresponding to the error code is returned.