Raw File
1 /*============================================================================
2 epub2txt v2
3 util.h
4 Copyright (c)2022 Marco Bonelli, Kevin Boone GPL v3.0
5 ============================================================================*/
6
7 #pragma once
8
9 #include "defs.h"
10
11 int run_command (const char *const argv[], BOOL abort_on_error);
12
13 /** Decode %xx in URL-type strings. The caller must free the resulting
14 string, which will be no longer than the input. */
15 char *decode_url (const char *url);
16
17 /** Determine whether path is a subpath of root, assuming both paths are in
18 canonical form. */
19 BOOL is_subpath (const char *root, const char *path);
20
Generated by GNU Enscript 1.6.6, and GophHub 1.3.