nah it was ass
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#define fastReadNum(path, buf, result_ptr, div) \
|
||||
_Generic((result_ptr), \
|
||||
uint64_t*: _fRN_u64, \
|
||||
)(path, buf, sizeof(buf), result_ptr, div)
|
||||
void fast_read_num_u64(const char* dir, const char* file, char* buf, uint64_t* result, uint16_t divider);
|
||||
void fast_read_num_i16(const char* dir, const char* file, char* buf, int16_t* result, uint16_t divider);
|
||||
|
||||
bool file_exists(const char *path);
|
||||
|
||||
int get_hwmon_dir(char *path);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user