mbtowc - Convert pointer into normal character String in C


#include <stdlib.h>
#include <stdio.h>

int main(void){

  char *mb = "asdfadsf";
  char str[1000];

  mbtowc(str, mb, 2);
 
  printf("%s",str);

}

Output:a