title: Any SPICE library/API written in C?
body: <p>I am looking for some implementation of SPICE (electronic circuits simulator) written in C language which can be used as library.</p>
  
  <p>I found some <a href="http://www.thedigitalmachine.net/eispice.html" rel="nofollow noreferrer">SPICE clone for Python</a> and for <a href="https://stackoverflow.com/questions/5438757/any-good-java-spice-library-api">Java</a>, but not for C.</p>
  
  <p>So far, I am using <a href="http://ngspice.sourceforge.net/" rel="nofollow noreferrer">ngspice</a>. It is very good clone of SPICE3, it is written in C, it has <a href="http://ngspice.sourceforge.net/docs/ngspice-manual.pdf" rel="nofollow noreferrer">very good documentation</a>. Is it possible to use it as library (so I can compile it into shared library and use it in my C project)? I compiled ngspice from source, but the result is CLI interface. Is there any option I can compile it into shared library?</p>
  
  <p>But I am fine with any other SPICE clone.</p>