*BSD News Article 67682


Return to BSD News archive

Newsgroups: comp.os.linux.development.system,comp.unix.bsd.386bsd.misc,comp.unix.bsd.bsdi.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc,comp.os.linux.advocacy
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!mail2news.alias.net!myriad!mylinuxbox!suck!netcom.com!bnelson
From: bnelson@netcom.com (Bob Nelson)
Subject: Re: reading WORD ``attachments''    (aaaarrggh!)
Message-ID: <bnelsonDqw5xp.5x5@netcom.com>
Followup-To: comp.os.linux.development.system,comp.unix.bsd.386bsd.misc,comp.unix.bsd.bsdi.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.freebsd.misc,comp.os.linux.advocacy
Organization: a computer running Linux
X-Newsreader: TIN [version 1.2 PL2]
References: <4ki055$60l@Radon.Stanford.EDU> <4mb38b$680@solaria.cc.gatech.edu> <PHILLIP.96May4182311@mirriwinni.cse.rmit.edu.au>
Date: Sat, 4 May 1996 17:29:49 GMT
Lines: 23
Sender: bnelson@netcom14.netcom.com
Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:23001 comp.unix.bsd.386bsd.misc:925 comp.unix.bsd.bsdi.misc:3659 comp.unix.bsd.netbsd.misc:3496 comp.unix.bsd.freebsd.misc:18708 comp.os.linux.advocacy:48000

On 04 May 1996 08:23:11 GMT, Phillip Musumeci wrote:

>> Here is a very low-tech filter [...for Word files...] to remove
>> some of the weird stuff from the file before piping it into less/more.

>> #include <stdio.h>

>> [other code deleted]

>> void main()
>> {

Did you intend to write this filter in the C programming language? If
you do wish to rewrite it in C, be aware that main returns an int.
"void main" is undefined and is best left to ignorants such as "author"
Herb Schildt. See the Standard for the language for the correct 
declaration of main.

-- 
=============================================================================
          Bob Nelson: Dallas, Texas, U.S.A.  -  bnelson@netcom.com
      Linux for fun, M$ for $$$...and the NFL for what really counts!
=============================================================================