Import c Library or a c program to rust

Can any one explain how to use a simple c lib / .c / .h file in rust language with an example

Take a look at this example.