scilab: test enum example, source renamed

This commit is contained in:
Simon Marchetto 2014-07-01 09:58:33 +02:00
commit 7c1899a458
3 changed files with 24 additions and 1 deletions

View file

@ -1,16 +0,0 @@
/* File : example.c */
#include "example.h"
#include <stdio.h>
void enum_test(color c) {
if (c == RED) {
printf("color = RED\n");
} else if (c == BLUE) {
printf("color = BLUE\n");
} else if (c == GREEN) {
printf("color = GREEN\n");
} else {
printf("color = Unknown color!\n");
}
}