Header to include for scripting in linux C/C++ programs

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 ...

  1. #1
    System.out.println("");
    Join Date
    Jan 2005
    Posts
    84

    Header to include for scripting in linux C/C++ programs

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    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.

  3. #3
    System.out.println("");
    Join Date
    Jan 2005
    Posts
    84
    Thank you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple include problem
    By VirtualAce in forum Game Programming
    Replies: 13
    Last Post: 02-04-2006, 06:09 PM
  2. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 05:17 PM
  3. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 10:15 AM
  4. Replies: 6
    Last Post: 04-02-2002, 05:46 AM
  5. Header file include guards
    By foniks munkee in forum C Programming
    Replies: 4
    Last Post: 03-22-2002, 12:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21