#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include <string.h> #include <stdlib.h> int main() { char buf[100]; char*name = "nandfs"; memset(buf,0,sizeof(buf)/sizeof(char)); strcat(buf,name); printf("buf is %s ",buf); for(;;); return 0; }