diff options
| author | Anser <rostgans@tutamail.com> | 2026-07-31 09:16:23 +0200 |
|---|---|---|
| committer | Anser <rostgans@tutamail.com> | 2026-07-31 14:27:57 +0200 |
| commit | 9ad584b5762433f7c99d7cc7b65ad21ebe4ff932 (patch) | |
| tree | 7f3299370afc4f0d1794918e279d9715ab0b009f /src/modules/memory | |
| parent | 1a474dce46260fb043bd8ce74e221379e36af1a4 (diff) | |
TO BE SQUISHED:safe of current working stand, to get the logos vom ascii directory
Diffstat (limited to 'src/modules/memory')
| -rw-r--r-- | src/modules/memory/memory.c | 4 | ||||
| -rw-r--r-- | src/modules/memory/memory.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/memory/memory.c b/src/modules/memory/memory.c index 211cf44..62eeafe 100644 --- a/src/modules/memory/memory.c +++ b/src/modules/memory/memory.c @@ -1,12 +1,12 @@ #include <stdio.h> #include "memory.h" -int memory(void) { +char *memory(void) { FILE *file = fopen("/proc/meminfo", "r"); if (!file) { perror("Error fopen meminfo"); - return 1; + return NULL; } char line[256]; diff --git a/src/modules/memory/memory.h b/src/modules/memory/memory.h index f963702..5c35178 100644 --- a/src/modules/memory/memory.h +++ b/src/modules/memory/memory.h @@ -1,6 +1,6 @@ #ifndef MEMORY_H #define MEMORY_H -int memory(void); +char *memory(void); #endif // MEMORY_H |
