Article View: alt.privacy.anon-server
Article #46345Re: Free reliable wordcount utility available (final version)
From: Phil Carmody
Date: Sun, 03 Nov 2002 17:05
Date: Sun, 03 Nov 2002 17:05
53 lines
3029 bytes
3029 bytes
On Sun, 03 Nov 2002 15:47:43 +0000, Richard Heathfield wrote:
> "Thomas J. Boschloo" wrote:
>>
> <snip>
>>
>> No remarks at all? Is my program that good since neither of you can find
>> any flaws in it?
>
> <shrug> It claimed to be in ANSI C, but contained the line
>
> #include <values.h>
>
> which is not an ANSI C header. This is such a basic mistake that I just
> presumed the whole article was a nut-post. We get a lot of those in
> sci.crypt.
>
>> Anyways there will be a port to ANSI-C because I used
>> the wrong library for the maximum value of an integer and my Turbo C 2.0
>> compiler didn't warn me at all about this (I should have used INT_MAX
>> from limits.h instead of MAXINT from values.h).
>
> Headers are headers. Libraries are libraries. Please learn the simple
> stuff before you move onto the complicated stuff. Thank you.
What? No comment about the insularity of the following assumption? You're
slacking, Richard! :-)
And what is EDCBIN?
<<<
/* since most of the usenet population uses outlook express the EDCBIN/IBM
character set is assumed */
int isletter(const int c)
{
if(c<0) return FALSE; /* shouldn't happen really */
if(((c>='0') && (c<='4')) || (c=='6') || (c=='8')) return TRUE;
/* 133t tr4d3r w8'n */
if((c>=128) && (c<=154)) return TRUE; /* multi-lang */
if((c>=160) && (c<=167)) return TRUE; /* spanish or something */
if((c>=224) && (c<=239)) return TRUE; /* greek and german */
if((c>'z') || (c<'A')) return FALSE;
if((c>'Z') && (c<'a')) return FALSE;
return TRUE;
}
>>>
What does the OP have against ISO graves, circumflices, tildes, diaerses,
rings and cedillas? Perhaps isalpha(7) and locale(7) would be useful.
The misspelling of 1337 as 133t was a dead 9iveaway there was something
amiss.
Phil
Technical Details
Message-ID:
<pan.2002.11.03.17.05.02.482162@yahoo.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!62.236.152.56!not-for-mailReferences:
<3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> Subject: Re: Free reliable wordcount utility available (final version) Date: Sun, 03 Nov 2002 19:05:04 +0200 From: "Phil Carmody" <thefatphil_demunge@yahoo.co.uk> References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!62.236.152.56!not-for-mail Newsgroups: alt.privacy.anon-server,sci.crypt,alt.fan.cult-dead-cow,alt.security.pgp Lines: 53 NNTP-Posting-Host: 62.236.152.56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: fu-berlin.de 1036343134 6434177 62.236.152.56 (16 [77618]) User-Agent: Pan/0.13.0 (The whole remains beautiful (Debian GNU/Linux))