mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered.

mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered. Correct Answer true

int mblen(const char *a, size-t n); If in the given code “a” points to a NULL character then the function returns 0 or -1 is returned if they do not form a valid multibyte character.

Related Questions

Point out the error (if any) in the following C code?
#include #include int main(void){ int* p = NULL; struct S *s = NULL; void(*f)(int, double) = NULL; char *ptr = malloc(15); if (ptr == NULL) printf("Out of memory"); free(ptr);}
Which function converts the wide-character string to a multibyte string?