10 char *fingerpath
= "portal/tcp/localhost/finger";
12 #define FING_BUFSIZE 16384
13 char buff
[FING_BUFSIZE
];
17 errx(1, "Error: usage: %s [name]", argv
[0]);
18 fp
= fopen(fingerpath
, "r+");
20 err(1, "open of %s", fingerpath
);
23 fprintf(fp
, "%s\n", name
);
24 n
= fread(buff
, (size_t) 1, FING_BUFSIZE
, fp
);
25 fwrite(buff
, (size_t) 1, n
, stdout
);