/[ascend]/trunk/ascend/general/ospath.c
ViewVC logotype

Diff of /trunk/ascend/general/ospath.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2325 by ballan, Mon May 18 15:03:16 2009 UTC revision 2326 by jpye, Tue Dec 21 11:35:07 2010 UTC
# Line 1  Line 1 
1  /*  ASCEND modelling environment  /*  ASCEND modelling environment
2      Copyright (C) 2006 Carnegie Mellon University      Copyright (C) 2006-2010 Carnegie Mellon University
3    
4      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
5      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# Line 842  int ospath_isroot(struct FilePath *fp) Line 842  int ospath_isroot(struct FilePath *fp)
842          return 0;          return 0;
843      }      }
844    
845      return fp->path == PATH_SEPARATOR_STR ? 1 : 0;      return strcmp(fp->path, PATH_SEPARATOR_STR) ? 1 : 0;
846  }  }
847    
848  unsigned ospath_depth(struct FilePath *fp){  unsigned ospath_depth(struct FilePath *fp){

Legend:
Removed from v.2325  
changed lines
  Added in v.2326

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22