]> git.sur5r.net Git - cc65/blobdiff - src/common/searchpath.c
Fixed LinuxDoc Tools issues in some verbatim blocks in the Atari document.
[cc65] / src / common / searchpath.c
index 78443f34cba977c40fcf7ce8bc9a95f2899ab03b..ca7017e6fd4a404e296ba5b4a4a4ff91c221e4bd 100644 (file)
@@ -238,6 +238,18 @@ void PopSearchPath (SearchPaths* P)
 
 
 
+char* GetSearchPath (SearchPaths* P, unsigned Index)
+/* Return the search path at the given index, if the index is valid, return an
+** empty string otherwise.
+*/
+{
+    if (Index < CollCount (P))
+        return CollAtUnchecked (P, Index);
+    return "";
+}
+
+
+
 char* SearchFile (const SearchPaths* P, const char* File)
 /* Search for a file in a list of directories. Return a pointer to a malloced
 ** area that contains the complete path, if found, return 0 otherwise.