]> pd.if.org Git - pdclib/blob - functions/stdlib/mblen.c
ae90a98353abce68d33e21e5c8ff40c589880b2b
[pdclib] / functions / stdlib / mblen.c
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7
8 int mblen( const char * s, size_t n ) { /* TODO */ };
9
10 /* PDPC code - unreviewed
11 {   
12     if (s == NULL)
13     {
14         return (0);
15     }
16     if (n == 1)
17     {
18         return (1);
19     }
20     else
21     {
22         return (-1);
23     }
24 }
25 */