another linked question is Segmentation fault while using strcpy()?
I have a structure:
struct thread_data{ char *incall[10]; int syscall
The corresponding struct initialiser can look like this:
struct
struct thread_data a = { .incall = {"a", "b", "c", "d", "e"}, .arg_no = 5, .client_socket = 3 };
Then you can assign the address of this to a pointer:
struct thread_data *b = &a;