| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) | 
Compare part of a multibyte-character string
#include <photon/PhProto.h>
int mbstrncmp( char const *str1, 
               char const *str2, 
               int len, 
               int char_width );
This function compares len multibyte characters from str1 with str2.
The char_width parameter must be set to the maximum number of bytes used to represent a single character.
An integer less than, equal to, or greater than zero, indicating that str1 is less than, equal to, or greater than str2.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
| ![[Previous]](../image-lib/prev.gif) | ![[Contents]](../image-lib/contents.gif) | ![[Index]](../image-lib/keyword_index.gif) | ![[Next]](../image-lib/next.gif) |