From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from femail12.sdc1.sfba.home.com ([24.0.95.108]) by speech.braille.uwo.ca with esmtp (Exim 3.32 #1 (Debian)) id 16AJ6U-0005eB-00 for ; Sat, 01 Dec 2001 17:59:26 -0500 Received: from tspivey8 ([24.76.54.195]) by femail12.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20011201225929.BWHE21774.femail12.sdc1.sfba.home.com@tspivey8> for ; Sat, 1 Dec 2001 14:59:29 -0800 To: speakup@braille.uwo.ca From: Tyler Spivey Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: 2 small utilities i wrote Message-Id: <20011201225929.BWHE21774.femail12.sdc1.sfba.home.com@tspivey8> Date: Sat, 1 Dec 2001 14:59:29 -0800 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: speakup@braille.uwo.ca X-Reply-To: Tyler Spivey List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: code's at the bottom. not too well written, but they do what they are supposed to do , in my tests. -- ac2t.c -- /* program name: ac2t this program takes input from stdin and outputs to stdout. summary: converts input of the form: ascii-code ascii-code .. to the result of those codes. -1 == eof. */ #include int main() { int ch; while (!feof(stdin)) { scanf("%d\n",&ch); printf("%c",ch); } } -- t2ac.c -- /* program name: t2ac this program takes input from stdin and outputs to stdout. summary: converts text to ascii codes, 1 per line. example: 32 65 72 .. -1 (end) */ #include main() { int ch; while (!feof(stdin)) { ch = getc(stdin); /* get from stdin */ /* print the ascii code, one per line. */ printf("%d\n",ch); } /* while */ } /* main */ --