Open 0xwal opened 3 years ago
Example of the workflow, look at this closed issue #2 .
can anyone please explain what actually we have to do for resolve this issue
@sachin-vinod make a function to replace a given sequence of a text and replace it with another given text.
for example:
input: Hello World
to find: World
replacement text: Universe
result: Hello Universe
let me know if you want further help. thanks for being interested. 🥰
i want to work on this issue
sure go ahead
Check out this function i wrote up, Which suits your needs (the code does not use string.h
and relies on memory management functions like malloc
and free
)
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:
Restriction:
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 😉.