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

int putc_unlocked(int c, FILE*stream) {
    void *fptr;
    int retval;

    fptr = dlsym(_ChStdio_handle, "putc_unlocked_chdl");
    if(fptr == NULL)  {
       printf("Error: %s(): dlsym(): %s\n", __func__, dlerror());
       return -1;
    }
    dlrunfun(fptr, &retval, putc_unlocked, c, stream);
    return retval;
}
