summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c
diff options
context:
space:
mode:
Diffstat (limited to 'reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c')
-rw-r--r--reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c b/reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c
new file mode 100644
index 0000000..1924966
--- /dev/null
+++ b/reference/C/CONTRIB/OR_PRACTICAL_C/14_18.c
@@ -0,0 +1,8 @@
+#define X_SIZE 60
+#define Y_SIZE 30
+
+int matrix[X_SIZE][Y_SIZE];
+void init_matrix(void)
+{
+ (void)memset(matrix, -1, sizeof(matrix));
+}