Orcania: src/orcania.c File Reference

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

Macros | Functions
orcania.c File Reference
`#include <stdio.h>`
`#include <string.h>`
`#include <ctype.h>`
`#include <stdarg.h>`
`#include "orcania.h"`
Include dependency graph for orcania.c:

## Macros
#define | _GNU_SOURCE

## Functions
char * | str_replace (const char *source, const char *str_old, const char *str_new)
char * | msprintf (const char *message,...)
char * | mstrcatf (char *source, const char *message,...)
char * | o_strdup (const char *source)
char * | o_strndup (const char *source, size_t len)
int | o_strcmp (const char *p1, const char *p2)
int | o_strncmp (const char *p1, const char *p2, size_t n)
char * | o_strcpy (char *p1, const char *p2)
char * | o_strncpy (char *p1, const char *p2, size_t n)
int | o_strcasecmp (const char *p1, const char *p2)
int | o_strncasecmp (const char *p1, const char *p2, size_t n)
char * | o_strstr (const char *haystack, const char *needle)
char * | o_strchr (const char *haystack, int c)
const char * | o_strnchr (const char *haystack, size_t len, char c)
char * | o_strrchr (const char *haystack, int c)
const char * | o_strrnchr (const char *haystack, size_t len, char c)
char * | o_strnstr (const char *haystack, const char *needle, size_t len)
char * | o_strcasestr (const char *haystack, const char *needle)
size_t | o_strlen (const char *s)
size_t | split_string (const char *string, const char *separator, char ***return_array)
void | free_string_array (char **array)
size_t | string_array_size (char **array)
char * | string_array_join (const char **array, const char *separator)
char * | trimwhitespace (char *str)
char * | trimcharacter (char *str, char to_remove)
int | string_array_has_value (const char **array, const char *needle)
int | string_array_has_value_case (const char **array, const char *needle)
int | string_array_has_value_n (const char **array, const char *needle, size_t len)
int | string_array_has_value_ncase (const char **array, const char *needle, size_t len)
int | string_array_has_trimmed_value (const char **array, const char *needle)
void | pointer_list_init (struct _pointer_list *pointer_list)
void | pointer_list_clean (struct _pointer_list *pointer_list)
void | pointer_list_clean_free (struct _pointer_list *pointer_list, void(*free_function)(void *elt))
size_t | pointer_list_size (struct _pointer_list *pointer_list)
int | pointer_list_append (struct _pointer_list *pointer_list, void *element)
void * | pointer_list_get_at (struct _pointer_list *pointer_list, size_t index)
int | pointer_list_remove_at (struct _pointer_list *pointer_list, size_t index)
int | pointer_list_remove_at_free (struct _pointer_list *pointer_list, size_t index, void(*free_function)(void *elt))
int | pointer_list_insert_at (struct _pointer_list *pointer_list, void *element, size_t index)
int | pointer_list_remove_pointer (struct _pointer_list *pointer_list, void *element)
int | pointer_list_remove_pointer_free (struct _pointer_list *pointer_list, void *element, void(*free_function)(void *elt))

## Macro Definition Documentation

## ◆ _GNU_SOURCE

#define _GNU_SOURCE

Orcania library

Different functions for different purposes but that can be shared between other projects

orcania.c: main functions definitions

Copyright 2015-2020 Nicolas Mora mail@.nosp@m.babe.nosp@m.loues.nosp@m.t.or.nosp@m.g

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 2.1 of the License.

This library 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 General Public License along with this library. If not, see http://www.gnu.org/licenses/.