Generator frontend scripts (./libcevap_gen.sh to be run in libcevap/)

This commit is contained in:
2007-08-19 18:37:38 +00:00
parent 99fceeb9e4
commit 9b552e9db6
4 changed files with 73 additions and 46 deletions

24
libcevap/main.c Normal file
View File

@ -0,0 +1,24 @@
#include <stdio.h>
#include <stdlib.h>
#include "cevapi.h"
int main(int argc, char **argv)
{
struct CevapI *cevap= NULL;
int ret;
/* full memory supervision */
Smem_set_record_items(1);
/* one short trip for testing */
ret= Cevapi_new(&cevap,0);
if(ret>0)
Cevapi_destroy(&cevap,0);
/* report any leaked memory */
Smem_stderr(1|2);
exit(ret<=0);
}