summaryrefslogtreecommitdiff
path: root/example.h
blob: 61ac8d5ab4545f861c8ccbec159f62ce7b0a8627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
enum Place
{
    HOME,      /* Home, Sweet Home */
    WORK,      /* where I spend lots of time */
    MOVIES,    /* Saturday nights mainly */
    CITY,      /* New York, New York */
    COUNTRY    /* Bob's Country Bunker */
};

/*
 * do some useful work for a change.
 * This function will actually get some productive
 * work done, if you are really lucky.
 * returns the number of milliseconds in a second.
 */
int dowork(int count,        /* how much work to do */
           enum Place where, /* where to do the work */
           long fiveoclock   /* when to knock off */);