#ifndef __DIR_H__ #define __DIR_H__ enum Dir { up, down, left, right, none }; Dir charToDir(char ch); #endif