diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-27 06:57:51 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-27 06:57:51 +0300 |
commit | ac6fbacce69ad8d53099f1e6ab922c2e4bd6f9cc (patch) | |
tree | 1e2306bfaad26233f805467b52b956b3dcd431f4 /c_implementation/src/aklogcatter.c | |
parent | 698c607b8cad8ef22eee3ef4b196cbe648070a05 (diff) | |
download | arching-kaos-tools-ac6fbacce69ad8d53099f1e6ab922c2e4bd6f9cc.tar.gz arching-kaos-tools-ac6fbacce69ad8d53099f1e6ab922c2e4bd6f9cc.tar.bz2 arching-kaos-tools-ac6fbacce69ad8d53099f1e6ab922c2e4bd6f9cc.zip |
Updates.. better file names
Diffstat (limited to 'c_implementation/src/aklogcatter.c')
-rw-r--r-- | c_implementation/src/aklogcatter.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/c_implementation/src/aklogcatter.c b/c_implementation/src/aklogcatter.c deleted file mode 100644 index c002eda..0000000 --- a/c_implementation/src/aklogcatter.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <libaklogcatter.h> -#include <stdio.h> -#include <libaklog.h> -#include <stdlib.h> - -int ak_logcatter() -{ - printf("Testing: %s\n", __func__); - FILE *fp; - fp = fopen("/home/kaotisk/.arching-kaos/logs", "r"); - if (!fp) - { - perror("fopen"); - return EXIT_FAILURE; - } - char buffer[1] = {0}; - char line[1024] = {0}; - unsigned int i = 0; - while ( fread(buffer, sizeof(char), sizeof(char), fp) ) - { - if ( buffer[0] == '\n' ) - { - line[i] = '\0'; - ak_log_print_log_line(line); - i = 0; - } - else - { - line[i] = buffer[0]; - line[i+1] = '\0'; - i++; - } - } - fclose(fp); - return 0; -} |