This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/flasy/flasy.h
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

35 lines
507 B
C

#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
/* plz note that all functions are not thread-safe */
struct flasy_t;
typedef struct flasy_t flasy_t;
flasy_t* /* OWNERSHIP */
flasy_new(
size_t bufsz,
size_t hlen
);
void
flasy_delete(
flasy_t* srv /* OWNERSHIP */
);
FILE* /* OWNERSHIP/NULLABLE */
flasy_open_file(
flasy_t* srv,
const char* path,
bool binary
);
void
flasy_close_file(
flasy_t* srv,
FILE* fp /* OWNERSHIP */
);