/*****************************************************************************/
/* */
-/* list.c */
+/* list.c */
/* */
-/* Module listing for the ar65 archiver */
+/* Module listing for the ar65 archiver */
/* */
/* */
/* */
#include <stdio.h>
#include <stdlib.h>
+/* common */
+#include "print.h"
+
/* ar65 */
#include "error.h"
#include "library.h"
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
/* Check the argument count */
if (argc <= 0) {
- Error ("No library name given");
+ Error ("No library name given");
}
if (argc > 2) {
- Error ("Too many arguments");
+ Error ("Too many arguments");
}
/* Open the library, read the index */
/* Get the entry */
O = CollConstAt (&ObjPool, I);
+ /* Print the size if verbose */
+ Print (stdout, 1, "%5lu ", O->Size);
/* Print the name */
- printf ("%s\n", O->Name);
+ puts (O->Name);
}
/* Successful end */
exit (EXIT_SUCCESS);
}
-
-
-