hightimePT
IS-IT--Management
Hi.
I'm coding a user/pass autentication system, and I got a struct user with all the data needed by the system about users.
void create_user(char* username, char* password, char* nc, time_t dr){
struct user username;
username.username = username;
....
I'm getting a type error:
error: incompatible types when assigning to type ‘char *’ from type ‘struct user’
How can i name each user struct from a char*??
thanks for help in ad vance.
I'm coding a user/pass autentication system, and I got a struct user with all the data needed by the system about users.
void create_user(char* username, char* password, char* nc, time_t dr){
struct user username;
username.username = username;
....
I'm getting a type error:
error: incompatible types when assigning to type ‘char *’ from type ‘struct user’
How can i name each user struct from a char*??
thanks for help in ad vance.