'Cleaning the code;'

This commit is contained in:
Arkadiusz Hypki 2023-03-24 11:22:49 +01:00
parent b9fa899970
commit 104859a949

27
main.c
View File

@ -1,32 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
//int main(void)
//{
// FILE * fp;
// char * line = NULL;
// size_t len = 0;
// ssize_t read;
//
// fp = fopen("/etc/fstab", "r");
// if (fp == NULL)
// exit(EXIT_FAILURE);
//
// while ((read = getline(&line, &len, fp)) != -1) {
// printf("Retrieved line of length %zu:\n", read);
// printf("%s", line);
// }
//
// fclose(fp);
// if (line)
// free(line);
// exit(EXIT_SUCCESS);
//}
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define MAX_LINE_LENGTH 1000 #define MAX_LINE_LENGTH 1000
int main() { int main() {