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

char *t_alloc(int fildes, int struct_type, int fields) {
    void *fptr;
    char * retval;

    fptr = dlsym(_ChTiuser_handle, "t_alloc_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return NULL;
    }
    dlrunfun(fptr, &retval, t_alloc, fildes, struct_type, fields);
    return retval;
}
