Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ucbvax!WSMR-SIMTEL20.ARMY.MIL!w8sdz From: w8sdz@WSMR-SIMTEL20.ARMY.MIL (Keith Petersen) Newsgroups: comp.binaries.ibm.pc.d Subject: Freely distributable uudecode (update) Message-ID: Date: 19 Dec 89 16:23:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 33 Some users have reported trouble compiling the freely distributable uudecode I posted. It seems that Berkeley moved the "index" function to one of their system libraries and some systems don't have it. Here is the missing "index" function, excerpted from an earlier freely distributable uudecode. Just add it on the end of the uudecode I posted. ---cut-here--- /* * Return the ptr in sp at which the character c appears; * NULL if not found */ #define NULL 0 char * index(sp, c) register char *sp, c; { do { if (*sp == c) return(sp); } while (*sp++); return(NULL); } ---cut-here--- --Keith Petersen Maintainer of SIMTEL20's CP/M, MSDOS, & MISC archives [IP address 26.2.0.74] Internet: w8sdz@WSMR-SIMTEL20.Army.Mil, w8sdz@brl.arpa BITNET: w8sdz@NDSUVM1 Uucp: {ames,decwrl,harvard,rutgers,ucbvax,uunet}!wsmr-simtel20.army.mil!w8sdz