1

segmentation, fault

view story
linux-howto

http://forums.fedoraforum.org – Can you help me in finding out why this program is giving segmentation fault? Iam running this program using fedora9. #include <stdio.h> #include<time.h> #include<sys/types.h> #include<curses.h> #include<unistd.h> #include<string.h> #include<stdlib.h> #include <err.h> #include <fcntl.h> #include <sys/mman.h> #include<sys/stat.h> struct item { char tid[20]; char item_ids[20][5]; }; typedef struct item item; int func1() { char item_id[10][5]={"I1","I2","I3","I4&quo (HowTos)