]> Dogcows Code - chaz/tar/commitdiff
(list_dumpdir): New function. Used to dump contents of GNUTYPE_DUMPDIR blocks.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 14 Sep 2005 13:23:12 +0000 (13:23 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 14 Sep 2005 13:23:12 +0000 (13:23 +0000)
src/incremen.c

index 9902d10a2bf9e0a4a51f0418c3f10b4ac133f243..e5c280acacc9e5dd2934a8b6ed9ae3d8b7296bb1 100644 (file)
@@ -557,3 +557,32 @@ purge_directory (char const *directory_name)
   free (current_dir);
   free (archive_dir);
 }
+
+void
+list_dumpdir (char *buffer, size_t size)
+{
+  while (size)
+    {
+      switch (*buffer)
+       {
+       case 'Y':
+       case 'N':
+       case 'D':
+         fprintf (stdlis, "%c ", *buffer);
+         buffer++;
+         size--;
+         break;
+         
+       case 0:
+         fputc ('\n', stdlis);
+         buffer++;
+         size--;
+         break;
+         
+       default:
+         fputc (*buffer, stdlis);
+         buffer++;
+         size--;
+       }
+    }
+}
This page took 0.029325 seconds and 4 git commands to generate.