wikid

[discontinued] A quick and simple CLI-program for downloading and rendering wikipedia pages in the terminal.
git clone https://noxz.tech/git/wikid.git
Log | Files | README | LICENSE

util.h
1typedef enum {
2    false,
3    true
4} bool;
5
6typedef struct {
7    const char *name;
8    const char *template;
9} Service;
10
11typedef struct {
12    const char *entity;
13    const char *replacement;
14} Dictionary;
15
16void string_replace(char *str, char find, char replace);
17void string_remove(char *str, const char *rem);
18void string_trim(char *str);
19void string_remove_redundent_spaces(char *str);
20void dictionary_replace(char *str, const Dictionary *dict, int size);
21int m_pow(int x, int y);
22int hex_value(char c);
23void ucs_to_utf8(char *ucs);
24void unicode_decode(char *str);