Помогите плиз!!! Значит когда откоментирую 3 строки у меня прога вы- подает в Segmentation fault. Зарание спасибо. #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <time.h> inline char *Time(); int main() { char *c; int i = 0,pid; int j = 1; if((pid = fork()) == 0) { while(1) { c = Time(); printf("\t\t\t\t\t\t\tПотомок %s\n",c); // printf("\t\t\t\t\t\t%d\n",j); } } else { while(2) { c = Time(); printf("Отец %s\n",c); // printf("%d\n",j); // j++; } } exit(0); } inline char *Time() { char *str; struct tm *tm_now; time_t timer; time(&timer); /* текущее календарное время */ tm_now = localtime(&timer); /* сделать структуру */ strftime(str,6,"%M:%S",tm_now); return str; }