iphreeqc/tests/test_c.c
Scott R Charlton 298a715b8b Renamed GetLastErrorString to GetErrorString
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4339 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-05-04 23:36:21 +00:00

34 lines
395 B
C

#include <IPhreeqc.h>
int
main(int argc, const char* argv[])
{
int id;
id = CreateIPhreeqc();
if (id < 0)
{
return 1;
}
if (LoadDatabase(id, "phreeqc.dat") != 0)
{
OutputError(id);
return 2;
}
if (RunFile(id, "ex1") != 0)
{
OutputError(id);
return 3;
}
if (DestroyIPhreeqc(id) != IPQ_OK)
{
OutputError(id);
return 4;
}
return 0;
}