TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: All
from: rowan_crowe
date: 1996-01-19 05:56:28
subject: example C program

/**********************************************************************
*                                                                     *
* Public domain code by Rowan Crowe, 3:635/727.1{at}fidonet              *
*                                    rowan{at}jelly.freeway.DIALix.oz.au *
*                                                                     *
* Demonstration of how to use isleapyear()                            *
*                                                                     *
**********************************************************************/

#include 
#include 

extern int isleapyear(int year);

int main(int argc, char *argv[]) {
    int x;
    if (argv[1] == NULL) {
       printf("\nUsage:\n  %s \n", argv[0]);
       return(0);
    }
    printf("\nThe year %s is ", argv[1]);
    x = isleapyear(atoi(argv[1]));
    if (x == 0) printf("NOT a leap year");
      else
        printf("a leap year");
    return(0);
}

---
* Origin: Jelly-Bean software development, Melbourne AUST. (3:635/727.1)
SEEN-BY: 50/99 632/103 348 998 633/371 634/384 635/402 503 544 727 638/102
SEEN-BY: 639/252 640/230 690/718 711/401 410 413 430 808 809 934 713/888
SEEN-BY: 800/1 7877/2809
@PATH: 635/727 632/348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.