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

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

    return execve(path, argv, envp);
}
