How To Write PID control algorithm using C language

How To Write PID control algorithm using C language