ref: f95ddbe45db70bf58be577607142ba9fa5a77843
dir: /prefs.h/
#pragma once #include "base.h" #include <stdio.h> // FILE cannot be forward declared typedef enum { Readprefs_left_and_right = 0, // left and right will be set Readprefs_irrelevant, // only left will be set Readprefs_buffer_too_small, // neither will be set Readprefs_eof, // " Readprefs_io_error, // " } Readprefs_result; Readprefs_result prefs_read_line(FILE* file, char* buf, Usz bufsize, char** out_left, Usz* out_leftlen, char** out_right, Usz* out_rightlen);