make it take size after all
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
#ifndef LINUXSMARTIE_UTILS_H
|
||||
#define LINUXSMARTIE_UTILS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
@@ -31,7 +31,7 @@ char *pretty_bytes(uint64_t bytes, int8_t start_suffix, char *buf, size_t bufsz)
|
||||
|
||||
bool file_exists(const char *path);
|
||||
|
||||
int get_hwmon_dir(char *path);
|
||||
int get_hwmon_dir(char *path, size_t bufsz);
|
||||
|
||||
size_t read_file(const char *path, char *buffer, size_t n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user