File: API.md

package info (click to toggle)
orcania 2.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: ansic: 2,352; makefile: 199; sh: 29
file content (24 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Orcania library

Potluck with different functions for different purposes that can be shared among C programs.

This is a small library intended to provide low-level functionalities in my other libraries and programs.

The functionalities are divided into 4 categories:

## String functions

- Wrappers for `string.h`: functions like `strcpy`, `strcmp` or `strchr` that will not segfault if a parameter is `NULL`
- `split_string` and afiliated functions: split a string using a separator match or join a split string

## Pointer list structure

Simple structure to store and manipulate any kind of pointer in an array.

## Base64 functions

Encode, decode in base64 and base64url format.

## Memory functions

Replace glib `malloc/realloc/free` functions with user-defined memory functions.