Mercurial Hosting > dis
comparison dis.c @ 3:a499c3c6b9ae
Are you STUPID???
author | VilyaemKenyaz |
---|---|
date | Tue, 29 Aug 2023 16:37:37 -0400 |
parents | 2b6ce8d53356 |
children | 8448e78efe82 |
comparison
equal
deleted
inserted
replaced
2:2b6ce8d53356 | 3:a499c3c6b9ae |
---|---|
9 //puts("Displaying:"); | 9 //puts("Displaying:"); |
10 char * filetoread = argv[1]; | 10 char * filetoread = argv[1]; |
11 char * file = ReadFile(filetoread); | 11 char * file = ReadFile(filetoread); |
12 //printf("Contents of argv: %s\n",*argv); | 12 //printf("Contents of argv: %s\n",*argv); |
13 //printf("Reading file: %s\n",filetoread); | 13 //printf("Reading file: %s\n",filetoread); |
14 | 14 /* |
15 while(strlen(file) != 0){ | 15 while(strlen(file) != 0){ |
16 //char * print = ReadLine(file,1); | 16 //char * print = ReadLine(file,1); |
17 printf("%s\n",ReadLine(file,1)); | 17 printf("%s\n",ReadLine(file,1)); |
18 DeleteLine(file,1); | 18 DeleteLine(file,1); |
19 } | 19 } |
20 */ | |
21 | |
22 printf("%s\n",file); | |
20 exit(0); | 23 exit(0); |
21 } | 24 } |
22 | 25 |