Remove multiline comment

This commit is contained in:
Night Kaly 2024-10-24 11:00:03 +01:00
parent 9f39fd2c85
commit 37cbae591c
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

3
nsh.c
View file

@ -223,8 +223,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Unable to open file: %s\n", argv[i]); fprintf(stderr, "Unable to open file: %s\n", argv[i]);
exit(1); exit(1);
} }
/* Handle file without extension /* Handle file without extension */
* ext is the extension if . exist in filename, otherwise nothing */
char *ext = strrchr(argv[i], '.'); char *ext = strrchr(argv[i], '.');
if (ext != NULL) { if (ext != NULL) {
/* How to identify file type if there isn't extension? */ /* How to identify file type if there isn't extension? */