execl() number of args

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.
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().
thanks for your reply... :D
Topic archived. No new replies allowed.