Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- char *pwd = "9i2ht16";
- void printPassword() {
- printf("Password is: %s", pwd);
- }
- int decrpytName(char *theName) {
- char name[20];
- strcpy(name, theName);
- if (name[0] == 'V') {
- printPassword();
- return 1;
- } else {
- printf("Authentication Failed");
- return 0;
- }
- }
- int main(int argc, char *argv) {
- if (argc < 2) {
- printf("Usage: Enter name");
- exit(0);
- }
- int authCode = copyTheString(argv[1]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement