cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : execl() number of args
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  execl() number of args

theChameleon (12)
hello, what must i write in my program to ensure that whenever i call execl, the correct number of arguments are passed into it?

example, if i write the code to pass 4 arguments into the execl(), the 5th to n arguments would be ignored. is there a way to prevent this... other than overloading?

if there is none, is there an alternative?

thanks.
|
bnbertha (404)
there are a whole family of exec calls, some take lists, some take vectors. It sounds like you need to use one of the vector variants e.g. execv().
|
theChameleon (12)
thanks for your reply... :D
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us