scratch.cc 375 B

12345678910111213141516171819202122
  1. #include <apt-pkg/tagfile.h>
  2. #include <signal.h>
  3. #include <stdio.h>
  4. int main(int argc,char *argv[])
  5. {
  6. FileFd F(argv[1],FileFd::ReadOnly);
  7. pkgTagFile Reader(F);
  8. pkgTagSection Sect;
  9. while (Reader.Step(Sect) == true)
  10. {
  11. Sect.FindS("Package");
  12. Sect.FindS("Section");
  13. Sect.FindS("Version");
  14. Sect.FindI("Size");
  15. };
  16. return 0;
  17. }