From owner-freebsd-questions Fri Aug 17 17:38:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 4ACE637B40E for ; Fri, 17 Aug 2001 17:38:26 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 3D1776ACBC; Sat, 18 Aug 2001 10:08:24 +0930 (CST) Date: Sat, 18 Aug 2001 10:08:24 +0930 From: Greg Lehey To: Wing Tim Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Programming Problem II Message-ID: <20010818100823.R50416@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from twchim1@hotmail.com on Fri, Aug 17, 2001 at 01:56:00PM +0800 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] We now do have evidence that your MUS mutilates text. On Friday, 17 August 2001 at 13:56:00 +0800, Wing Tim wrote: > On Fri, 17 Aug 2001 10:13:43 +0930, Greg Lehey wrote: >> On Thursday, 16 August 2001 at 20:43:12 +0800, Wing Tim wrote: >>> Hi, >>> I have a program "s.c" (as attached). >>> >>> [-- Attachment #2: s.zip --] >>> [-- Type: application/x-zip-compressed, Encoding: base64, Size: 29K --] >>> >>> [-- application/x-zip-compressed is unsupported (use 'v' to view this part) --] >> >> I doubt that many people will go to the trouble to extract this file. >> If you use a non-mutilating MUA (and there's no other evidence that >> you don't), you can just attach the file. >> >> I placed it in the root and tried >>> to compile it using "gcc s.c". However, I got lots of errors as follows: >>> # gcc s.c >>> s.c:295: syntax error before `int' >> >> Without looking at the source, I'd guess that the word before int is a >> typedef of some kind, and you haven't included the header file in >> which it's defined. > > Here is the file without zipping. > > [-- Attachment #2: s.c --] > [-- Type: application/octet-stream, Encoding: base64, Size: 108K --] > > [-- application/octet-stream is unsupported (use 'v' to view this part) --] This is barely an improvement. Your original question was borderline for this group anyway. Your source file is very long, and you don't seem to have tried my suggestion. You'll find quite a bit of help here, but you won't find many people willing to do your work for you. If the problem persists after you consider my suggestions, make a smaller example program, find an MUA which doesn't gratuitously wrap text, and send another message. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message