[BACK]Return to repl.c CVS log [TXT][DIR] Up to [local] / OpenXM / rc

Diff for /OpenXM/rc/repl.c between version 1.8 and 1.9

version 1.8, 2003/01/16 07:50:57 version 1.9, 2003/01/16 07:57:42
Line 1 
Line 1 
 /* $OpenXM: OpenXM/rc/repl.c,v 1.7 2002/04/05 01:55:59 takayama Exp $ */  /* $OpenXM: OpenXM/rc/repl.c,v 1.8 2003/01/16 07:50:57 maekawa Exp $ */
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  
   #include <errno.h>
 #include <string.h>  #include <string.h>
   #include <unistd.h>
   
 #define BUFSIZE 10000  #define BUFSIZE 10000
   
Line 21  main(int argc,char *argv[]) {
Line 23  main(int argc,char *argv[]) {
         }          }
   }    }
   
   getcwd(cwd,BUFSIZE);    if (getcwd(cwd, sizeof(cwd)) == NULL) {
           fprintf(stderr, "getcwd: %s\n", strerror(errno));
           exit(1);
     }
   slash = strrchr(cwd,'/');    slash = strrchr(cwd,'/');
   *slash = 0;    *slash = 0;
   while (fgets(s,BUFSIZE,stdin) != NULL) {    while (fgets(s,BUFSIZE,stdin) != NULL) {

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

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