updated Makefile and fix colors
This commit is contained in:
1 parent
192b426e50
commit
1b2ae1647e
2 files changed
+22
-4
No files matched your search
+4
-4
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
|
||||
} else if (atoi(argv[1]) > 0) {
|
||||
int quantity = atoi(argv[1]);
|
||||
char *pwd = get_random_string(ALPHABET, quantity);
|
||||
printf("%sPassword %s->%s %s\n", GREEN, YELLOW, BIWHITE, pwd);
|
||||
printf("%sPassword %s->%s %s\n%s", GREEN, YELLOW, BIWHITE, pwd, RESET);
|
||||
return 0;
|
||||
} else if (atoi(argv[1]) == 0) {
|
||||
// char *file_extension = get_file_extension(argv[1]);
|
||||
@@ -87,7 +87,7 @@ int main(int argc, char *argv[]) {
|
||||
// printf("%s\n", get_file_extension(argv[1]));
|
||||
char *pwd = get_random_string(argv[1], 4);
|
||||
// printf("Password -> %s\n", pwd);
|
||||
printf("%sPassword %s->%s %s\n", GREEN, YELLOW, BIWHITE, pwd);
|
||||
printf("%sPassword %s->%s %s\n%s", GREEN, YELLOW, BIWHITE, pwd, RESET);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -96,12 +96,12 @@ int main(int argc, char *argv[]) {
|
||||
char *alphabet = argv[1];
|
||||
char *pwd = get_random_string(alphabet, quantity);
|
||||
// printf("Password -> %s\n", pwd);
|
||||
printf("%sPassword %s->%s %s\n", GREEN, YELLOW, BIWHITE, pwd);
|
||||
printf("%sPassword %s->%s %s\n%s", GREEN, YELLOW, BIWHITE, pwd, RESET);
|
||||
return 0;
|
||||
}
|
||||
char *pwd = get_random_string(ALPHABET, 4);
|
||||
// printf("Password -> %s\n", pwd);
|
||||
printf("%sPassword %s->%s %s\n", GREEN, YELLOW, BIWHITE, pwd);
|
||||
printf("%sPassword %s->%s %s\n%s", GREEN, YELLOW, BIWHITE, pwd, RESET);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user