I am writing a program in linux where I need to be able to use certain linux utilities such as split and sort. What header file do I include so I can use these in the middle of a C/C++ program? Thanks.
Printable View
I am writing a program in linux where I need to be able to use certain linux utilities such as split and sort. What header file do I include so I can use these in the middle of a C/C++ program? Thanks.
Step 1 is stop referring to C/C++. If you just cherry-pick the bits of both languages which suit you, then you end up with a mess.
As for running programs within programs, try this FAQ entry
http://faq.cprogramming.com/cgi-bin/...&id=1045780608
Thank you.