File: division.c

package info (click to toggle)
yforth 0.1beta-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 352 kB
  • ctags: 787
  • sloc: ansic: 4,414; makefile: 60
file content (10 lines) | stat: -rw-r--r-- 203 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <math.h>
#include <assert.h>

main() {
	FILE *f = fopen("div.h", "wt");
	assert(f != NULL);
	fprintf(f, "#define FLOORED_DIVISION %d\n", (-10 % 7) > 0 ? 1 : 0);
	fclose(f);
}