Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

implode in C

Altera_Forum
Honored Contributor II
1,464 Views

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?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
426 Views

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 Luck
0 Kudos
Altera_Forum
Honored Contributor II
426 Views

Thanks. Good example. But what about special libraries may be there is some library for string manipulation?

0 Kudos
Altera_Forum
Honored Contributor II
426 Views

you can design for your own functions..:D

0 Kudos
Altera_Forum
Honored Contributor II
426 Views

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)

0 Kudos
Reply