diff options
author | axtloss <axtlos@getcryst.al> | 2024-07-13 13:32:53 +0200 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-07-14 16:43:24 +0200 |
commit | 1a4696492e3cd478080e438950a7664a68fefcd6 (patch) | |
tree | 3b6e6658d5d56d3a28c6c83a8c6b64cffaa27555 /src/extlib.h | |
parent | 3e85fcb0270c9224ab95dac02c737e6676974c8e (diff) | |
download | extlib-1a4696492e3cd478080e438950a7664a68fefcd6.tar.gz extlib-1a4696492e3cd478080e438950a7664a68fefcd6.tar.bz2 |
Add manpages for each extlib function
Diffstat (limited to 'src/extlib.h')
-rw-r--r-- | src/extlib.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/src/extlib.h b/src/extlib.h index fc7a3d2..5264195 100644 --- a/src/extlib.h +++ b/src/extlib.h @@ -1,20 +1,5 @@ -/* extlib.h - * - * Copyright 2024 axtlos <axtlos@disroot.org> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - * - * SPDX-License-Identifier: LGPL-3.0-only +/* extlib.c + * SPDX-License-Identifier: BSD-3-Clause */ #include <stdlib.h> @@ -52,8 +37,9 @@ void ignore_handler_s (const char *__restrict, void *__restrict, errno_t); #endif -/// Copy the data of one filestream to another */ -void fcopy(FILE *f1, FILE *f2); +/// Copy the data of one filestream to another +/// Returns the amount of bytes copied. +size_t fcopy(FILE *src, FILE *dst); #if (_XOPEN_SOURCE == 500) /// Recursively remove a directory pathname. @@ -73,6 +59,6 @@ char *strupr(char *s); /// Trim spaces from a string char *trim (char *s, int *rem_front, int *rem_back); -/// Match string old and replace it with string replace +/// Match string s for old and replace it with string replace char *replace_str (char *s, char *old, char *replace); |