Article View: alt.privacy.anon-server
Article #46475Re: Free reliable wordcount utility available (final version)
From: Richard Heathfield
Date: Wed, 06 Nov 2002 21:33
Date: Wed, 06 Nov 2002 21:33
180 lines
7723 bytes
7723 bytes
"Thomas J. Boschloo" wrote: > > Phil Carmody wrote: > > > > 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. > > Should I regard this as an spelling lame? Or is this much more serious > an error to you Richard? <shrug> You claimed the code was written in ANSI C. It wasn't. > > >> 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. > > So what does this compiler option tell you? > -A disable non-ANSI extensions It tells me that you have a compiler switch that claims to disable non-ANSI extensions. This is irrelevant to your claim that the program is written in ANSI C. > > I think the compiler could have warned me about this 'basic mistake' Why? The inclusion of a non-standard header is neither a syntax error nor a constraint violation, so no diagnostic is required. If you think that the implementation let you down by not providing a diagnostic anyway, then that's a matter between you and the compiler vendor. > Rich, but at least we are getting somewhere here. > > > What? No comment about the insularity of the following assumption? You're > > slacking, Richard! :-) > > > > And what is EDCBIN? > > Another spelling lame?? I think I said I was not a linguist like you two > seem to be. To me words may have a totally different meaning. Anyways, I > thought you guys from sci.crypt would concentrate on the maths behind > the hash algorithm. <shrug> Some people like to concentrate on maths issues, it's true. I happen to be interested in ANSI C, which is why I paid such close attention (initially, at least) to your article. > I guess that is just to hard for you to do That's probably true. I don't claim to be a wizard mathematician. > which > made you resort to spelling and coding (is there such a thing?) lames. <shrug> I don't recall correcting (or mocking) your spelling - but then you didn't claim that your spelling conformed to a language standard. You *did* claim that your program conformed to a language standard, though. > Tell you what, I think you Rich, did compile the program but couldn't > work out the warning and errors you got from your compiler, which made > you angry and you just had to punish someone for this grave frustration > this 'nutty' program gave you. You ought to know what you're thinking, I suppose. > But at least you tried, Hmmm? What, to compile it, you mean? Well, it's hardly even necessary to compile the code. The non-standard header sticks out like a sore thumb. > that is more that > I can say for other people back here who didn't even bother to reply. Maybe they had nothing to say about it. <snip> > I am lost on ISO graves. Are they still chars that can be read by fgetc? If the character set includes such characters, then fgetc can read them. > You two seem to know a lot about these kinds of things. Hmmm. You might want to compare that statement to the one where you opined that I couldn't understand compiler diagnostics. > Or maybe fgetc > is superseded by another function I should use? fgetc is still an ANSI C function. > Perhaps it is not safe > because it reads characters unbuffered? Why would that make it unsafe? <snip> > Besides, Turbo C 2.0 hasn't got a locale function according to the > online help file ANSI C has a setlocale() function, which is probably what Phil was talking about. > and to Rich, isalpha is just a macro in Turbo C 2.0: > > #ctype.h > # define isalpha(c) (_ctype[(c) + 1] & (_IS_UPP | _IS_LOW)) No, isalpha() is not *just* a macro in Turbo C 2.0. It is a portable way to determine whether a character is alphabetic. rc = isalpha((unsigned char)ch) is portable at a source code level, whereas rc = (ch >= 'A' && ch <= 'Z') is not. > So why aren't you flaming Phil here to learn the simple stuff before > moving to the ISO stuff? I'm not aware that you've shown him to be in error. > Besides, I am thinking about a preprocessor > that will turn =%2x strings into EBCDIC characters. I'm surprised that you are so concerned about EBCDIC (not that there's anything wrong with that), but I can't help feeling that you may have misunderstood what EBCDIC is. (I might be wrong about that, of course.) > Would that be nice > or is it better to put the whole code into one lump of program? After > all, l33t coders don't make programming mistakes, do they?! All programmers make mistakes. > If anyone still has any more constructive criticism, fire away but be > aware that my clothing is asbestos coated as you might have figured by > now. Also, my flamethrower is a lot better I think you > math/crypto-sissies! If you want to bandy words, please find someone else to do it with. > Learn to code!! Thanks for the tip. I'll get right on it. > Knowledge about cryptodesign alone > gets you nowhere in this world, you should learn a tiny bit about > security also (like I do). A tiny bit of knowledge about security (such as you possess) gets you nowhere in this world; you should also learn not to make claims you can't back up. I suggest that you might find it easier not to claim ANSI conformance for your C programs until you know what ANSI C is and what it is for. -- Richard Heathfield : binary@eton.powernet.co.uk "Usenet is a strange place." - Dennis M Ritchie, 29 July 1999. C FAQ: http://www.eskimo.com/~scs/C-faq/top.html K&R answers, C books, etc: http://users.powernet.co.uk/eton
Technical Details
Message-ID:
<3DC98ABC.27E67263@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!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!lon1-news.nildram.net!195.60.31.14.MISMATCH!news2.power.net.uk!news.power.net.ukReferences:
<3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid>Show Full Headers
Complete Article Headers
Message-ID: <3DC98ABC.27E67263@eton.powernet.co.uk> Subject: Re: Free reliable wordcount utility available (final version) Date: Wed, 06 Nov 2002 21:33:48 +0000 From: Richard Heathfield <binary@eton.powernet.co.uk> References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> 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!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!lon1-news.nildram.net!195.60.31.14.MISMATCH!news2.power.net.uk!news.power.net.uk Organization: Eton Computer Systems Ltd X-Mailer: Mozilla 4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (WinNT; I) X-Accept-Language: en-GB,en MIME-Version: 1.0 Newsgroups: alt.privacy.anon-server,sci.crypt,alt.fan.cult-dead-cow,alt.security.pgp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.60.5.47 X-Trace: news.power.net.uk 1036620365 195.60.5.47 (6 Nov 2002 22:06:05 GMT) Lines: 182