Thread: Execvp help

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Except that when you're passing parameters to variadic functions like the exec functions, the compiler cannot perform the silent conversion of a plain 0 into a NULL pointer of the correct type.

    (char*)NULL or (char*)0 would be the most accurate things to write.
    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.

  2. #17
    Registered User
    Join Date
    May 2010
    Salem and cas is right.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do i make an array of pointers for execvp
    By Blasz in forum C Programming
    Replies: 4
    Last Post: 05-18-2010, 10:42 PM
  2. Using execvp
    By kotoko in forum C Programming
    Replies: 21
    Last Post: 01-06-2009, 02:05 PM
  3. Storing the result of execvp to a char array in C
    By kponenation in forum C Programming
    Replies: 1
    Last Post: 12-14-2005, 11:43 PM
  4. Replies: 1
    Last Post: 10-27-2005, 10:24 AM
  5. getting input from keyboard, passing to execvp
    By jumpyg in forum C++ Programming
    Replies: 4
    Last Post: 11-02-2003, 08:49 PM