Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!ccncsu!longs.LANCE.ColoState.Edu!robert From: robert@longs.LANCE.ColoState.Edu (Robert Thompson) Newsgroups: comp.sys.handhelds Subject: Fixing the HP48sx demo program Message-ID: <5224@ccncsu.ColoState.EDU> Date: 12 Mar 90 06:16:24 GMT Sender: news@ccncsu.ColoState.EDU Reply-To: robert@longs.LANCE.ColoState.Edu (Robert Thompson) Organization: Colorado State University, Fort Collins, CO 80523 Lines: 34 Having seen many requests for help on UUDECODING the 48's demo program I am submitting this short program to fix the line length problems. The version I got in the mail had the trailing spaces removed. Consequently, the file would not decode. usage: a.out < (uuencoded file) > (fixed file) I hope this helps the rest of you Robert Thompson Center for Computer Assisted Engineering Colorado State University ------ CUT HERE ------ #include main() { char inline[80]; while(fgets(inline,80,stdin) != NULL) { inline[strlen(inline)-1] = NULL; while(strlen(inline) < 60) strcat(inline," "); printf ("%s\n",inline); } } Hope this helps Robert Thompson Center for Computer Assisted Engineering Colorado State University