/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <stdlib.h>
long long strtoll(char *str, char ** endptr, int base) {
    void *fptr;
    long long retval;

    fptr = dlsym(_ChStdlib_handle, "strtoll_chdl");
    if(fptr == NULL) {
        fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__,  dlerror());
        return -1;
    }
    dlrunfun(fptr, &retval, strtoll, str, endptr, base);
    return retval;
}
