[BACK]Return to fep_util.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / fep

Diff for /OpenXM_contrib2/fep/fep_util.c between version 1.1 and 1.4

version 1.1, 2002/09/03 00:41:44 version 1.4, 2019/12/13 15:41:36
Line 1 
Line 1 
 /*      Copyright (c) 1987, 1988 by Software Research Associates, Inc.  */  /*      Copyright (c) 1987, 1988 by Software Research Associates, Inc.  */
   
   #if defined(ANDROID)
   #include <strings.h>
   #define index(s,c) strchr(s,c)
   #define rindex(s,c) strrchr(s,c)
   #endif
   
 #ifndef lint  #ifndef lint
 static char rcsid[]=  static char rcsid[]=
 "$Header$ (SRA)";  "$Header$ (SRA)";
Line 8  static char rcsid[]=
Line 14  static char rcsid[]=
 #ifndef MKARGDEBUG  #ifndef MKARGDEBUG
   
 #include <stdio.h>  #include <stdio.h>
   #include <string.h>
 #include <pwd.h>  #include <pwd.h>
 #include <sys/types.h>  #include <sys/types.h>
 #if defined(__CYGWIN__)  #if defined(__CYGWIN__) || defined(sun) || defined(ANDROID)
 #include <dirent.h>  #include <dirent.h>
 #else  #else
 #include <sys/dir.h>  #include <sys/dir.h>
Line 93  x_dirname (dir)
Line 100  x_dirname (dir)
     char *dir;      char *dir;
 {  {
     static char dirname [256];      static char dirname [256];
   #if !defined(ANDROID)
     char *index();      char *index();
   #endif
   
     if (*dir != '~')      if (*dir != '~')
         strcpy (dirname, dir);          strcpy (dirname, dir);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

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