[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg netlist
From: |
David Bateman |
Subject: |
Re: pkg netlist |
Date: |
Mon, 05 Mar 2007 14:00:11 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Bob Weigel wrote:
>>> |
>>> | octave:1> md5sum("test string\n")
>>> | ans = f299060e0383392ebeac64b714eca7e3
>>> |
>>> | % echo "test string" > foo; md5sum foo
>>> | f299060e0383392ebeac64b714eca7e3 foo
>>> |
>>> | Shows that the code works.. The code is worked up as a patch against
>>> | the CVS.
>>>
>
> Hi David,
>
> I think this is great addition. I would like to suggest that the input
> should
> be either a file name or a string. If a filename is found in the loadpath,
> the checksum for it is computed.
>
How do you tell the difference between a filename and a string? Does
this mean you want a "-file" option or something like that
> Without a file name option, we'll be loading a file into memory (tar.gz) and
> passing it to md5. For large files, it will be much faster to use a system
> call to a md5 binary (if it exists).
>
I'm not sure that
fid = fopen (file, "rb")
buf = fread(fid)
fclose(fid)
md5 = md5sum(char(buf)')
won't be as fast..
D.
> Bob
>
>
>
>
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
- Re: pkg netlist, David Bateman, 2007/03/01
- Re: pkg netlist, David Bateman, 2007/03/01
- Re: pkg netlist, John W. Eaton, 2007/03/01
- Re: pkg netlist, John W. Eaton, 2007/03/05
- Re: pkg netlist, David Bateman, 2007/03/05
- Re: pkg netlist, John W. Eaton, 2007/03/05
- Re: pkg netlist, David Bateman, 2007/03/05
Re: pkg netlist, Bob Weigel, 2007/03/07