2021-10-19 09:37:49 +02:00
|
|
|
#ifndef __CHARACTER__
|
|
|
|
#define __CHARACTER__
|
2021-10-07 14:51:19 +02:00
|
|
|
|
2023-08-10 11:13:06 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "string.h"
|
|
|
|
|
2021-10-07 14:51:19 +02:00
|
|
|
/**
|
|
|
|
* @brief Append a character to a string, assuming string points to an array
|
|
|
|
* with enough space.
|
|
|
|
*
|
|
|
|
* @param string
|
|
|
|
* @param character
|
|
|
|
*/
|
|
|
|
void character_append(char* string, char character);
|
|
|
|
|
2023-08-10 11:13:06 +02:00
|
|
|
/**
|
|
|
|
* @brief Append a character to a string at a specific index, assuming string points to an array with enough space.
|
|
|
|
*
|
|
|
|
* @param string
|
|
|
|
* @param character
|
|
|
|
* @param index
|
|
|
|
*/
|
|
|
|
void character_append_at(char* string, const char character, const size_t index);
|
|
|
|
|
2021-10-07 14:51:19 +02:00
|
|
|
#endif
|