[BACK]Return to sample1.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Diff for /OpenXM/src/ox_toolkit/sample1.c between version 1.5 and 1.8

version 1.5, 2003/02/04 20:43:55 version 1.8, 2003/09/15 09:31:42
Line 1 
Line 1 
 /* -*- mode: C -*- */  /* -*- mode: C -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/sample1.c,v 1.4 2003/01/11 11:42:32 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/sample1.c,v 1.7 2003/03/30 08:05:23 ohara Exp $ */
   
 /*  /*
    This sample program explains how to construct     This sample program explains how to construct
Line 16 
Line 16 
 #include <unistd.h>  #include <unistd.h>
 #include "ox_toolkit.h"  #include "ox_toolkit.h"
   
   OXFILE* ox_start(char* host, char* prog1, char* prog2);
   
 /* This program uses High-level functions of OpenXM C library. */  /* This program uses High-level functions of OpenXM C library. */
 int main()  int main()
 {  {
Line 33  int main()
Line 35  int main()
        the elements are a bignum. */         the elements are a bignum. */
     c = new_cmo_list();      c = new_cmo_list();
   
     list_append(c, new_cmo_zz_set_si(10000));      list_append(c, (cmo *)new_cmo_zz_set_si(10000));
     list_append(c, new_cmo_zz_set_si(-2342));      list_append(c, (cmo *)new_cmo_zz_set_si(-2342));
     list_append(c, new_cmo_zz_set_string("3141592653289793238462643383279"));      list_append(c, (cmo *)new_cmo_zz_set_string("3141592653289793238462643383279"));
   
     /* sending the list above. */      /* sending the list above. */
     ox_push_cmo(s, (cmo *)c);      ox_push_cmo(s, (cmo *)c);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.8

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>