Re: mu TECH: a new uglified 'hexd'

From: Michele Andreoli (m.andreoli@tin.it)
Date: Wed Apr 26 2000 - 09:15:18 CEST


On Tue, Apr 25, 2000 at 07:10:22PM -0400, Alfie Costa nicely wrote:
>
> ...so that 'foo.v1' and 'foo.v2' will be identical. The old 'hexd' problem
> seemed to be related to using the 'read()' function in the routine that 'hexd -
> d' calls. Changing this routine so it uses 'fgets()' seems to be what fixes
> it. It's still a little bit of a mystery, but it works.

fgets() seems to be a deprecated function. Why?

>
> 2) Pointers were used, which might be harder to read. My first attempt used
> array notation and so it was easier to read, but using pointers was faster.

but array are indentical to pointers, in C. Isn't true?

> This approaches one of those political questions of "usage vs. programming
> complexity". This code leans more towards the 'harder to code but easier to
> use camp'.

Beh, if the code is unreadable, the yours will be the last patch a this program!

Michele

-- 
I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:14 CET