Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Déterminer en octet la taille d’un caractère multibyte


{filelink=13212}

/*
#include <stdlib.h>
int mblen ( const char *s , size_t maxsize  );
 
*/
 
  #include <stdlib.h>
  #include <stdio.h>
 
  int main(void)
  {
     char *md = "exemple";
 
     printf("%d", mblen(md, 2));
 
	 return 0;
  }

No comments yet.

Leave a Comment