/* $Header: kitlists.c,v 4.3 85/05/01 11:42:08 lwall Exp $
* Revision 4.3 85/05/01 11:42:08 lwall
* Baseline for release with 4.3bsd.
FILE *outfp
[MAXKIT
]; /* of course, not this many file descriptors */
char buf
[1024], filnam
[128];
ls -l `awk '{print $1}' <%s'` | awk '{print $8 \" \" $4}' | sort +1nr\
", argc
> 1 ? argv
[1] : "MANIFEST.new");
while (fgets(buf
,1024,inp
) != Nullch
) {
(newtot
= tot
[i
] + atol(s
) + FILEOVERHEAD
) > MAXKITSIZE
-KITOVERHEAD
;
sprintf(filnam
,"kit%d.list",i
);
outfp
[i
] = fopen(filnam
,"w");
printf("Adding %s to kit %d giving %d bytes\n",buf
,i
,newtot
);
fprintf(outfp
[i
],"%s\n",buf
);