File: example.h

package info (click to toggle)
c2man 2.41-11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 800 kB
  • ctags: 863
  • sloc: ansic: 6,559; sh: 5,236; yacc: 839; lex: 621; makefile: 229; perl: 81
file content (18 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (6)
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 */);