scratch.cc 479 B

1234567891011121314151617181920212223
  1. #include <apt-pkg/acquire-item.h>
  2. #include <apt-pkg/acquire-worker.h>
  3. #include <apt-pkg/init.h>
  4. #include <apt-pkg/error.h>
  5. #include <strutl.h>
  6. #include <signal.h>
  7. #include <stdio.h>
  8. int main(int argc,char *argv[])
  9. {
  10. URI Foo(argv[1]);
  11. cout << Foo.Access << '\'' << endl;
  12. cout << Foo.Host << '\'' << endl;
  13. cout << Foo.Path << '\'' << endl;
  14. cout << Foo.User << '\'' << endl;
  15. cout << Foo.Password << '\'' << endl;
  16. cout << Foo.Port << endl;
  17. return 0;
  18. }