use libc;
use std::ffi::{CStr};
use std::io::{stderr, Write};
use std::ptr;
use super::c_api::c_format_to_rust;
#[no_mangle]
pub extern fn kpse_find_file(name: *const i8, format: libc::c_int, must_exist: libc::c_int) -> *const i8 {
let rname = unsafe { CStr::from_ptr (name) };
let rformat = c_format_to_rust (format);
let rmust_exist = must_exist != 0;
writeln!(&mut stderr(), "WARNING: always-fail kpse_find_file: {:?}, {:?} ({}), {}",
rname, rformat, format, rmust_exist).expect ("stderr failed");
ptr::null()
}