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

size_t wcslen(const wchar_t *str1) {
    void *fptr;
    size_t retval;

    fptr = dlsym(_ChWchar_handle, "wcslen_chdl");
    if(fptr == NULL) { 
        printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
        return NULL;
    }
    dlrunfun(fptr, &retval, wcslen, str1);
    return retval;
}
