J
JS
I can't seem to figure out how to send a string as a paramenter to a
function.
I have this structure:
struct list {
char thread[25];
struct list *previous;
struct list *next;
};
struct list *test;
When I call this function I would like to give it a string (char array) as
argument that will be writtin to the thread field in the list struct:
void fill(char[] arg){
test->thread = arg;
}
But it seems that its not the way to do it, hope someone can help.
JS
function.
I have this structure:
struct list {
char thread[25];
struct list *previous;
struct list *next;
};
struct list *test;
When I call this function I would like to give it a string (char array) as
argument that will be writtin to the thread field in the list struct:
void fill(char[] arg){
test->thread = arg;
}
But it seems that its not the way to do it, hope someone can help.
JS