Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!nelson From: nelson@sun.soe.clarkson.edu (Russ Nelson) Newsgroups: comp.lang.postscript Subject: Re: pcal - another version of the PostScript calendar generator Message-ID: Date: 13 May 89 15:06:48 GMT References: <5276@pbhyf.PacBell.COM> Sender: news@sun.soe.clarkson.edu Reply-To: nelson@clutx.clarkson.edu Organization: Clarkson University, Postdam NY Lines: 17 In-reply-to: kjk@PacBell.COM's message of 12 May 89 16:42:47 GMT I had to change the first part of parse() to get it to work under SunOS 4.0 as shown below. The stupid tolower changes everything to lowercase, whether it is an uppercase letter or not! Many thanks to Ken for putting this together -- it's exactly what I was going to do (eventually). cp = strtok(lbuf, " \t"); /* get first field */ while (*cp) { if (isupper(*cp)) *cp = tolower(*cp); cp++; } cp = lbuf; -- --russ (nelson@clutx [.bitnet | .clarkson.edu]) I'm a right-to-lifer -- everyone has a right to earn a living sufficient to feed himself and his family.