ngspice/src/frontend/com_dump.c

25 lines
437 B
C
Raw Normal View History

#include <config.h>
#include <ngspice.h>
#include <bool.h>
#include <wordlist.h>
#include <inpdefs.h>
#include "circuits.h"
#include "com_dump.h"
#include "cpextern.h"
2001-02-09 14:27:21 +01:00
#include "fteext.h"
#include "spiceif.h"
void
com_dump(wordlist *wl)
{
2010-11-16 21:38:24 +01:00
NG_IGNORE(wl);
2010-11-16 20:11:32 +01:00
if (!ft_curckt || !ft_curckt->ci_ckt) {
fprintf(cp_err, "Error: no circuit loaded.\n");
return;
}
if_dump(ft_curckt->ci_ckt, cp_out);
return;
}