1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 11:30:03 +05:30
gists/c-programming/strings/str_replace.h

29 lines
434 B
C

/*
* str_replace.h
*
* Author: Intel A80486DX2-66
* License: Unlicense
*/
#ifndef _STR_REPLACE_H
#define _STR_REPLACE_H
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
// macros
// : parameters
// : : count of replacements
#define STR_REPLACE_ALL 0
// function definitions
char* str_replace(
const char* str,
const char* substr,
const char* replacement,
ssize_t max_count
);
#endif /* _STR_REPLACE_H */