summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c
diff options
context:
space:
mode:
Diffstat (limited to 'reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c')
-rw-r--r--reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c b/reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c
new file mode 100644
index 0000000..441b2f2
--- /dev/null
+++ b/reference/C/CONTRIB/OR_PRACTICAL_C/14_15.c
@@ -0,0 +1,15 @@
+#define X_SIZE 60
+#define Y_SIZE 32
+
+int matrix[X_SIZE][Y_SIZE];
+
+void init_matrix(void)
+{
+ register int x,y; /* current element to zero */
+
+ for (y = 0; y < Y_SIZE; y++) {
+ for (x = 0; x < X_SIZE; x++) {
+ matrix[x][y] = -1;
+ }
+ }
+}