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.
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
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Thank you.