Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_base64.h
Go to the documentation of this file.
1/*
2 * Nilorea Library
3 * Copyright (C) 2005-2026 Castagnier Mickael
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
27#ifndef __N_BASE64_H
28#define __N_BASE64_H
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
39#include <stdlib.h>
40#include <memory.h>
41#include "nilorea/n_str.h"
42
44bool n_isupper(char c);
46bool n_islower(char c);
48bool n_isalpha(char c);
50char n_toupper(char c);
52char n_tolower(char c);
53
57N_STR* n_base64_decode(N_STR* bufcoded);
58
63#ifdef __cplusplus
64}
65#endif
66/* #ifndef __N_BASE64_H */
67#endif
char n_tolower(char c)
convert a character to lowercase
Definition n_base64.c:142
N_STR * n_base64_decode(N_STR *bufcoded)
decode a base64 encoded N_STR
Definition n_base64.c:187
bool n_isupper(char c)
check if a character is uppercase
Definition n_base64.c:104
char n_toupper(char c)
convert a character to uppercase
Definition n_base64.c:131
bool n_islower(char c)
check if a character is lowercase
Definition n_base64.c:113
bool n_isalpha(char c)
check if a character is alphabetic
Definition n_base64.c:122
N_STR * n_base64_encode(N_STR *string)
encode a N_STR to base64
Definition n_base64.c:269
A box including a string and his lenght.
Definition n_str.h:60
N_STR and string function declaration.