使用sprintf 或者 strcpy/strncpy
比如: char a[128] = {0}; sprintf(a, “hello world!”);
strcpy(a, “hello world!”);