another fix. goddammit

This commit is contained in:
'mr software' 2022-01-05 23:01:46 -08:00
parent 502b10d01f
commit 7093c0e730
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -87,7 +87,7 @@ void vword(char* s) {
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
if(argc < 2) printf("argv[1] must contain word\n"); if(argc < 2) exit(!!printf("argv[1] must contain word\n"));
char* word = argv[1]; char* word = argv[1];
uint l = strlen(word); uint l = strlen(word);
for(uint i = 0; i < l; i++) if(word[i] < 'a' || word[i] > 'z') exit(!!printf("word must be all lowercase letters\n")); for(uint i = 0; i < l; i++) if(word[i] < 'a' || word[i] > 'z') exit(!!printf("word must be all lowercase letters\n"));