home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 80 
 Richard Webb to Paul Quinn 
 another convoluted brainteaser for the g 
 09 Feb 12 07:29:57 
 
HI Paul,

On Thu 2012-Feb-09 11:58, Paul Quinn (3:640/384) wrote to Richard Webb:

 PQ>> How about a bit of something in some old Turbo-C...

 PQ>> --- 8< ---
 PQ>>  int leap_yr_test(int test_yr)
 PQ>> /*
 PQ>>   function determines if a given year is a leap year

 RW> Ah so if one were to compile that does it give you an errorlevel if 
 RW> true and another if false? test_yr easy to define, especially as an 
 RW> environment variable as in
 RW> logecho $C$Y | nset test_yr=$1 USes HOrst's logecho and nset.

PQ> Nah.  It's only a 'function' stub.  You would need to wrap a main
PQ> program section around it, and call the function.

PQ> Have a look at a couple of other utils from Horst's archive. 
PQ> There's one that might simplify the job called "what.com".  Another
PQ> one that might help is "isdate.com".  I haven't played with either,
PQ> so caveat emptor.  ;-) 

I've looked at those, but not with an eye toward this.  I
get over this creeping crud I'll have to do that.

Regards,
           Richard
---
 * Origin:  (1:116/901)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca