version 1.9, 2003/01/16 07:57:42 |
version 1.10, 2003/01/16 08:27:23 |
|
|
/* $OpenXM: OpenXM/rc/repl.c,v 1.8 2003/01/16 07:50:57 maekawa Exp $ */ |
/* $OpenXM: OpenXM/rc/repl.c,v 1.9 2003/01/16 07:57:42 maekawa Exp $ */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
Line 27 main(int argc,char *argv[]) { |
|
Line 27 main(int argc,char *argv[]) { |
|
fprintf(stderr, "getcwd: %s\n", strerror(errno)); |
fprintf(stderr, "getcwd: %s\n", strerror(errno)); |
exit(1); |
exit(1); |
} |
} |
slash = strrchr(cwd,'/'); |
if ((slash = strrchr(cwd, '/')) == cwd) { |
|
fprintf(stderr, "The current working directory is /.\n"); |
|
exit(1); |
|
} |
*slash = 0; |
*slash = 0; |
while (fgets(s,BUFSIZE,stdin) != NULL) { |
while (fgets(s,BUFSIZE,stdin) != NULL) { |
if (strcmp(s,"OpenXM_HOME=$HOME/OpenXM\n") == 0) { |
if (strcmp(s,"OpenXM_HOME=$HOME/OpenXM\n") == 0) { |