my program must have a struct with a string, like this
typedef struct _Node {
char file[MAX];
//other stuff...
} Node;
Node *myPointer;
So, in other function, I need to read a string from the user and pass to my "file" variable in the struct, something like this:
char input[MAX];
scanf("%s", input);
(*myPointer).file = input;
The problem is that the size of the user's string is variable, it doesn't compile... What can I do ?
//sorry for my English