[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting case numbers
From: |
John Darrington |
Subject: |
Getting case numbers |
Date: |
Sat, 13 Nov 2004 10:44:35 +0800 |
User-agent: |
Mutt/1.5.4i |
Ben,
The examine cmd needs to report case numbers for extreme values.
I thought that this could be done this way:
for(r = casefile_get_reader (cf);
casereader_read (r, &c) ;
case_destroy (&c) )
{
const double weight =
dict_get_case_weight(default_dict, &c, &bad_weight_warn);
const union value *val = case_data (&c, var->fv);
const int case_no = case_num (&c, var->fv);
}
But case_num doesn't seem to do what I expected (and I was a bit
surprised that it's defined to return double). So obviously I'm doing
it wrong.
For a struct ccase , how do I find out its case number ??
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.
pgpmAH4ezNqwF.pgp
Description: PGP signature
- Getting case numbers,
John Darrington <=