print_usage() equivalent?

Is there a Neutrino equivalent for print_usage()?

On 01/05/2007 6:22 PM, Kevin Miller wrote:

Is there a Neutrino equivalent for print_usage()?

I don’t believe so, but this should do it:

#include <process.h>
int print_usage(char **argv) {
return execlp(“use”,argv[0],argv[0],NULL);
}


Ryan J. Allen
QNX Software Systems

Better get the fullpath of argv[0] before you do any chdir()s though…

Ryan J. Allen wrote:

On 01/05/2007 6:22 PM, Kevin Miller wrote:
Is there a Neutrino equivalent for print_usage()?

I don’t believe so, but this should do it:

#include <process.h
int print_usage(char **argv) {
return execlp(“use”,argv[0],argv[0],NULL);
}


cburgess@qnx.com