convertir une chaîne ‘multibyte’ à une chaîne ouverte

Author:


Download

/*
size_t mbstowcs ( wchar_t * restrict dest , const char * restrict src ,
                 size_t n  );

*/

#include 
#include 

int main(void){

  char *mb = "wxemple";
  wchar_t str[128]={ L''};

  size_t x= mbstowcs(str, mb, 32);

  printf("%u",x);

  return 0;

}

Leave a Reply

Your email address will not be published. Required fields are marked *