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

int wcswidth(const wchar_t *str1, size_t width) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChWchar_handle, "wcswidth_chdl");
    if(fptr == NULL) { 
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
        return -1;
    }
    dlrunfun(fptr, &retval, wcswidth, str1, width);
    return retval;
}
