-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Find and Replace Text
Description:
We need to write a function to replace the first found occurrence
in the input with the given replacement text.
Details:
Header:
src/include/string_replace.h
Source file:
src/string_replace.c
Test file:
tests/string_replace.test.cpp
Signature:
char* string_replace_first_occurence(const char* text, const char* replacement, const char* input);Restriction:
- Do not use any builtin string functions.
- Only allowed to use memory functions ex:
malloc,calloc, etc.
Note:
See Contribution Guide for more details.
Let me know if you are unable to write the tests, I will do that for you.
Also if you want any help let me know 😉.