Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

mbstowcs - Converts string pointer in into character array value in C

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

int main(void){

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

  mbstowcs(str, mb, 4);
 
  printf("%s",str);

}

Output:a