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.
This is a discussion on Header to include for scripting in linux C/C++ programs within the C++ Programming forums, part of the General Programming Boards category; I am writing a program in linux where I need to be able to use certain linux utilities such as ...
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Thank you.