nls: add a nls_nullsize inline
authorJeff Layton <jlayton@redhat.com>
Thu, 30 Apr 2009 10:45:08 +0000 (06:45 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 30 Apr 2009 15:32:11 +0000 (15:32 +0000)
commitd37dc42ab6f040b8f0f2962ab219c5b2accf748d
tree5030ecff53843afe1f362cdca3d0794cda17fac1
parentcbb7fe129bb2b836083ebcc256c43faff4b48cc2
nls: add a nls_nullsize inline

It's possible for character sets to require a multi-byte null
string terminator. Add a helper function that determines the size
of the null terminator at runtime.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
include/linux/nls.h