This repository has been archived on 2023-11-15. You can view files and clone it, but cannot push or open issues or pull requests.
feuille/bin.h
Tom MTT 8c30d271df feat: use paste size instead of NULL byte in order to write the paste
Previously, the pastes were written to disk until feuille encountered
a NULL byte. This is now fixed.

+ version bump.
2022-11-29 13:57:11 +01:00

26 lines
536 B
C

/*
* bin.h
* bin.c header declarations.
*
* Copyright (c) 2022
* Tom MTT. <tom@heimdall.pm>
*
* This file is licensed under the 3-Clause BSD License.
* You should have received a copy of the 3-Clause BSD License
* along with this program. If not, see
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
*/
#ifndef _BIN_H_
#define _BIN_H_
#include "feuille.h"
int paste_exists(char *);
int write_paste(char *, unsigned long, char *);
char *generate_id(int);
char *create_url(char *);
#endif