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

void profil(unsigned short *buff, unsigned int bufsiz,
    unsigned int offset, unsigned int scale) {
    void *fptr;

    fptr = dlsym(_ChUnistd_handle, "profil_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return;
    }
    dlrunfun(fptr, NULL, profil, buff, bufsiz, offset, scale);
}
