Files
chipper/include/chipper_log.h
T
2026-04-14 08:19:55 -04:00

22 lines
452 B
C

/**
* @file chipper_log.h
* @author Darwin Cereska (darwin@darwincereska.dev)
* @brief Logging functions
*/
#ifndef CHIPPER_LOG_H
#define CHIPPER_LOG_H
#include <stdio.h>
typedef struct {
const char *path;
FILE *file;
} ChipperLog;
int chipper_log_open(ChipperLog *log, const char *path);
void chipper_log_close(ChipperLog *log);
int chipper_log_write(ChipperLog *log, const char *timestamp, const char *line);
#endif // CHIPPER_LOG_H