M
Magix
how can I insert a substring into string ?E.g str_insert("WWW", MyStr, 3)
Can anyone provide the algorithm ?
Let say Mystr is "Testing"
the output will be TeWWWsting
void str_insert(const char *sourc,char *dest,int pos)
{
}
Thanks.
Can anyone provide the algorithm ?
Let say Mystr is "Testing"
the output will be TeWWWsting
void str_insert(const char *sourc,char *dest,int pos)
{
}
Thanks.