if (user_id==1) pass1 =stricmp(password,"admin"); if (user_id==2) pass1 =stricmp(password,"user");
The above coding is part of a user authenticating function i did for my assignment. I am restricted to use the old turbo c compiler with which i can't use the namespace .
The above coding needs to be modified so that the user can enter the password as a character array and that inturn will be stored as the password for that particular user id.
To be simple i need to know how i could copy a character array to another character array . I am a beginner and would really be glad if you could help!