]> Dogcows Code - chaz/tar/blobdiff - src/names.c
(names_done): New function.
[chaz/tar] / src / names.c
index 04719d081c8e0151e7f74f21f0199a7da2553d1d..41d3476ec6cb05428c5e719e4edfe9155cbd5638 100644 (file)
@@ -595,6 +595,17 @@ name_match (const char *path)
     }
 }
 
+/* Returns true if all names from the namelist were processed */
+bool
+names_done ()
+{
+  struct name const *cursor;
+  for (cursor = namelist; cursor; cursor = cursor->next)
+    if (!cursor->found && !cursor->fake)
+      return false;
+  return true;
+}
+
 /* Print the names of things in the namelist that were not matched.  */
 void
 names_notfound (void)
This page took 0.021931 seconds and 4 git commands to generate.