user
info

newc.c

I have no idea what this is. But it's representative of some of the truly random stuff I found in my random folder. It appears to alternate outputting the first 256 characters of both the openwin rgb color list and my ND .login script, alternating one character at a time, which I can't think of any way that that wouldn't produce gibberish. If only I could remember what, why or how. I guess there are some unused variables/functions that perhaps indicate this was a work in progress? Last modified August 24, 1998.

#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/uio.h> #include <fcntl.h> #include <unistd.h> int print_world(void); int main(){ int fd; int fd2; char a[256]; char b[256]; long int d; float e; double f; fd=open("/usr/openwin/lib/rgb.txt",O_RDONLY); fd2=open("/afs/nd.edu/user15/prijks/.login",O_RDONLY); read(fd,a,256); read(fd2,b,256); close(fd); close(fd2); for(d=0;d<256;d++){ printf("%c%c",a[d],b[d]); } printf("\n"); return 0; }