/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include<time.h>

struct tm *localtime_r(const time_t *clock, struct tm *res) {
    void *fptr;
    struct tm *retval;

    fptr = dlsym(_ChTime_handle, "localtime_r_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, localtime_r, clock, res);
    return retval;
}
