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

Diff for /OpenXM/src/util/test.c between version 1.5 and 1.7

version 1.5, 2003/12/03 03:21:16 version 1.7, 2004/08/12 12:11:41
Line 1 
Line 1 
 /* $OpenXM: OpenXM/src/util/test.c,v 1.4 2003/12/01 03:15:37 takayama Exp $ */  /* $OpenXM: OpenXM/src/util/test.c,v 1.6 2004/03/02 06:23:34 takayama Exp $ */
 #include <stdio.h>  #include <stdio.h>
 #include "ox_pathfinder.h"  #include "ox_pathfinder.h"
   
Line 6  sGC_malloc(int a) {
Line 6  sGC_malloc(int a) {
   return GC_malloc(a);    return GC_malloc(a);
 }  }
   
   main() {
     int n;
     /*
     n = oxpSendStringAsFile((char *)getenv("USER"),
                                                     "localhost", "t.t", "test\n");
     */
     n = oxpSendStringAsFile("taka",
                                                     "lemon2.math.kobe-u.ac.jp", "t.t", "test\n");
     printf("%d\n",n);
   }
 /* which command */  /* which command */
 main(int argc,char *argv[]) {  main_1(int argc,char *argv[]) {
   char *s;    char *s;
     char **a;
     int i;
   
     printf("hello\n"); fflush(NULL);
     a = getServerEnv("bin/ox_sm1");
     i = 0;
     if (a == NULL) {fprintf(stderr,"Not found.\n"); exit(10);}
     while (a[i] != NULL) {
           printf("i=%d,  %s\n",i,a[i++]);
     }
     exit(0);
   
   if (argc != 2) {    if (argc != 2) {
         fprintf(stderr,"test cmdname\n\n");          fprintf(stderr,"test cmdname\n\n");
   }    }

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

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