Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 v7 ucbopal-1.9 BSD 4.2; site ucbopal.CC.Berkeley.ARPA Path: utzoo!watmath!clyde!floyd!harpo!decvax!ucbvax!ucbtopaz!ucbopal!tut From: tut@ucbopal.CC.Berkeley.ARPA Newsgroups: net.unix Subject: sending binary files via telephone Message-ID: <161@ucbopal.CC.Berkeley.ARPA> Date: Sat, 31-Mar-84 20:21:32 EST Article-I.D.: ucbopal.161 Posted: Sat Mar 31 20:21:32 1984 Date-Received: Mon, 2-Apr-84 00:43:13 EST Organization: Univ. of Calif., Berkeley CA USA Lines: 31 Reading the System V manual, I noticed that USG Unix doesn't have uuencode or uudecode. After thinking about it, I wasn't sure why they are necessary anyway. It seems you can transmit binary files using two simple C programs, such as `hex' and `unhex': ----------------- #include main() /* hex.c - binary to hex */ { int c; while ((c = getchar()) != EOF) printf("%02x", c); exit(0); } ----------------- #include main() /* unhex.c - hex to binary */ { int c; while (scanf("%2x", &c) != EOF) putchar(c); exit(0); } ----------------- Are there any problems I don't know about here? Are uuencode and uudecode necessary because mailers require newlines every so often? Bill Tuthill ucbvax!imagen!tut