Fixed a small memory leak
[ntk/apt.git] / test / scratch.cc
CommitLineData
2b154e53 1#include <apt-pkg/tagfile.h>
3856756b 2#include <apt-pkg/strutl.h>
024835dc 3
b98f2859
AL
4#include <signal.h>
5#include <stdio.h>
6
93bf083d 7int main(int argc,char *argv[])
024835dc 8{
3856756b
AL
9 URI U(argv[1]);
10 cout << U.Access << endl;
11 cout << U.User << endl;
12 cout << U.Password << endl;
13 cout << U.Host << endl;
14 cout << U.Path << endl;
15 cout << U.Port << endl;
16
17/*
2b154e53
AL
18 FileFd F(argv[1],FileFd::ReadOnly);
19 pkgTagFile Reader(F);
20
21 pkgTagSection Sect;
22 while (Reader.Step(Sect) == true)
23 {
24 Sect.FindS("Package");
25 Sect.FindS("Section");
26 Sect.FindS("Version");
27 Sect.FindI("Size");
3856756b 28 };*/
93bf083d 29
f46e7681 30 return 0;
024835dc 31}