added function to check if string is URL (not used yet)
[rocksndiamonds.git] / src / libgame / misc.c
index 05599b777ebe98a8784a0adf39067f841a6ac89b..54e5bfd16b4822d7f682f3755aa6aac8e4952a66 100644 (file)
@@ -1298,6 +1298,14 @@ boolean strSuffixLower(char *s, char *suffix)
   return match;
 }
 
+boolean isURL(char *s)
+{
+  while (*s && *s >= 'a' && *s <= 'z')
+    s++;
+
+  return strPrefix(s, "://");
+}
+
 
 // ----------------------------------------------------------------------------
 // command line option handling functions