'Cleaning the code;'
This commit is contained in:
parent
b9fa899970
commit
104859a949
27
main.c
27
main.c
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user