working feffpath library with a working example in C