test/testfile.c

Sat, 25 Jul 2020 17:42:51 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 25 Jul 2020 17:42:51 +0200
changeset 58
bb512754aaf3
parent 57
68018eac46c3
child 66
be2084398c37
permissions
-rw-r--r--

fixes error message when directory access fails

57
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * Many Files have license headers.
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 */
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 // And add other stuff below.
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 int main(int argc, char* argv) { // comments behind code don't matter
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 int zero /* in block comments we are genius enough to
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * detect, if there is still some code in the line
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 */ = 0;
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 /* otherwise the whole comment is
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * not counted*/
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 // this holds also for this empty line
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 return zero;
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 }
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 /* rare case, but must also work: last line is a comment */

mercurial