I just figured out a solution, thanks to everyone who replied though!
Type: Posts; User: d320
I just figured out a solution, thanks to everyone who replied though!
Ah, thanks for clearing that up for me, I get confused in differentiating malloc-ing pointers and just setting the array size.
But if I change that to just
char *names[10];
I still...
It's not exactly, mob has to be a pointer but I'm not sure how to implement it in such a way..
I'm still pretty new to C programming and I was wondering if someone could tell me why the following code results in a seg fault:
typedef struct mob mob_t;
struct mob {
char *names[10 *...