summaryrefslogtreecommitdiff
path: root/2/part2.c
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-12-03 17:19:04 +0100
committerBond_009 <bond.009@outlook.com>2020-12-03 17:19:04 +0100
commit0f39612c19a4865dcaf5963590b985d4f29c4bd3 (patch)
treedf8e275e97d30cfa5bc6ee947f03c98276868a63 /2/part2.c
parent3da231113ccdd1b777028a4990dd035d07facdd5 (diff)
Style fixes
Diffstat (limited to '2/part2.c')
-rw-r--r--2/part2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/2/part2.c b/2/part2.c
index b856529..b167fcf 100644
--- a/2/part2.c
+++ b/2/part2.c
@@ -3,10 +3,10 @@
#include <stdlib.h>
#include <string.h>
-bool is_valid_password(char * pass, char * policy)
+bool is_valid_password(char *pass, char *policy)
{
int pos1 = atoi(policy) - 1;
- char * minP = strchr(policy, '-');
+ char *minP = strchr(policy, '-');
int pos2 = atoi(++minP) - 1;
char c = *(strchr(minP, ' ') + 1);
@@ -15,7 +15,7 @@ bool is_valid_password(char * pass, char * policy)
int main()
{
- FILE * file = fopen("input", "r");
+ FILE *file = fopen("input", "r");
char buffer[128] = { 0 };
int valid = 0;
while (fgets(buffer, 128, file)) {