declaraton & args

hello everybody,
When I do that it say to me what "data" undeclarated.
1
2
3
4
5
6
void create(){
add.time->(&data);
}
int main(int argc , char *argv[]){
argv[1] = (char *)data;
}

If declarate "data" in global, then I take null into "add.time->(&data);"
I want give data from args to void create().
Please, help me in that mistake.
What do you mean anyway?

1
2
3
int main(int argc , char *argv[]){
argv[1] = (char *)data;
}


argv[1] is read only.
resolved.
data = argv[1];
Topic archived. No new replies allowed.