Загрузить файлы в «src»

This commit is contained in:
8nlight 2023-10-04 20:00:21 +03:00
parent 74f22a1bd9
commit d8a1e77e63
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ int main(const int argc, const char **argv) {
else if (!strcmp(argv[i], "-h")) {
printf("cat [-n (numerate)] [file1 file2 ...]\n");
return 1;
return 0;
}
}

View File

@ -8,7 +8,7 @@
int list(const char *path, int flag, int label) {
struct stat statbuf;
if (stat(path, &statbuf)) {
fprintf(stderr, "unable to stat %s: %s\n", path, strerror(errno));
fprintf(stderr, "ls: unable to stat %s: %s\n", path, strerror(errno));
return 1;
}
@ -26,7 +26,7 @@ int list(const char *path, int flag, int label) {
struct dirent *ep;
DIR *dp = opendir(path);
if (dp == NULL) {
fprintf(stderr, "%s: %s\n", path, strerror(errno));
fprintf(stderr, "ls: %s: %s\n", path, strerror(errno));
return 1;
}