/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <unistd.h>
#include <stdarg.h>
restrict int execlp(char *file, char *arg0, ...) {
    va_list ap;
    int count, i;

    va_start(ap, oflag); 
    count = va_count(ap)+1;
    char *argv[count]; 
    argv[0] = arg0;
    for (i=1; i<count; i++) {
      argv[i] = va_arg(ap, char *);
    }
    va_end(ap);

    return execvp(file, argv);
}
