aboutsummaryrefslogtreecommitdiff
path: root/res/ko_sample.tpc
blob: f3a4c7a7bc6858bd4984177a0c97cca9f9338e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
  * UPEM / Compilation / Projet TPC
  * Exemple de fichier source TPC invalide
  * Pacien TRAN-GIRARD, Adam NAILI
  */

const special = 'b';

char funky_func(int arg) {
  return !arg;
}

void main(void) {
  void ret;
  ret = 1 + funky_func(0) * 2;

  while (ret) {
    readc(ret);
    print(ret);

    if (ret == special) print('!');
  }
}