return TRUE if s contains a directory, not just a filespec */
| 2176 | |
| 2177 | /* return TRUE if s contains a directory, not just a filespec */ |
| 2178 | boolean |
| 2179 | contains_directory(const char *s) |
| 2180 | { |
| 2181 | int i, slen = strlen(s); |
| 2182 | const char *cp = s; |
| 2183 | |
| 2184 | for (i = 0; i < slen; ++i) { |
| 2185 | if (*cp == '\\' || *cp == '/' || *cp == ':') |
| 2186 | return TRUE; |
| 2187 | cp++; |
| 2188 | } |
| 2189 | return FALSE; |
| 2190 | } |
| 2191 | |
| 2192 | /* =========================================================================*/ |
| 2193 |
no outgoing calls
no test coverage detected