#include #define BUFSIZE 4096 #define FILEMAX 128 int main(int argc, char* argv[]) { char buf1[BUFSIZE]; char buf2[BUFSIZE]; FILE* f[FILEMAX]; int s1, i, j, nbfiles; nbfiles = argc - 1; if (nbfiles <= 0) { fprintf(stderr, "usage: and maskfiles... > outputfile\n"); exit(2); } if (nbfiles > FILEMAX) { fprintf(stderr, "too many files on the command line\n"); exit(1); } for (j=0; j 0) { for (j=1; j