Altera_Forum
Honored Contributor
10 years agoimplode in C
Hello All.
I'm looking something like implode() (http://php.net/manual/en/function.implode.php) in php. Is Is there some kind of equivalent in C? Or it's necessary to create custom function?Hello All.
I'm looking something like implode() (http://php.net/manual/en/function.implode.php) in php. Is Is there some kind of equivalent in C? Or it's necessary to create custom function?Hi
There is no equivalent of php-imlode() in C. here (http://know-all.net/articles/view/44) is some example which might help for you. Good LuckThanks. Good example. But what about special libraries may be there is some library for string manipulation?
you can design for your own functions..:D
You could use the boost string library. Specifically boost::algorithm::join (http://www.boost.org/doc/libs/1_56_0/doc/html/string_algo/reference.html#header.boost.algorithm.string.join_hpp)