Subversion Repositories SvarDOS

Rev

Rev 269 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 269 Rev 270
Line 120... Line 120...
120
  longfilename[lastsep + 1] = savedchar;
120
  longfilename[lastsep + 1] = savedchar;
121
  return(shortfilename);
121
  return(shortfilename);
122
}
122
}
123
 
123
 
124
 
124
 
125
/* detect local paths (eg. C:\REPO). Returns 1 if the url looks like a local path, zero otherwise. */
-
 
126
int detect_localpath(char *url) {
-
 
127
  if (url[0] != 0) {
-
 
128
    if (url[1] != 0) {
-
 
129
      if ((url[1] == ':') && ((url[2] == '\\') || (url[2] == '/'))) return(1);
-
 
130
    }
-
 
131
  }
-
 
132
  return(0);
-
 
133
}
-
 
134
 
-
 
135
 
-
 
136
/* analyzes a filename string and returns the pointer to the file's extension
125
/* analyzes a filename string and returns the pointer to the file's extension
137
 * (which can be empty) */
126
 * (which can be empty) */
138
char *getfext(char *fname) {
127
char *getfext(char *fname) {
139
  char *res = NULL;
128
  char *res = NULL;
140
  for (; *fname != 0; fname++) {
129
  for (; *fname != 0; fname++) {