Execvp help

This is a discussion on Execvp help within the C Programming forums, part of the General Programming Boards category; Except that when you're passing parameters to variadic functions like the exec functions, the compiler cannot perform the silent conversion ...

  1. #16
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,337
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  2. #17
    Registered User
    Join Date
    May 2010
    Location
    Naypyidaw
    Posts
    1,314
    Salem and cas is right.
    resource.

Page 2 of 2 FirstFirst 12
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, 01: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, 10: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, 07:49 PM

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