#ifndef SUCCESS #define INTERRUPTED 2 #define SUCCESS 1 #define FAILURE 0 #endif /* Just in case TRUE and FALSE are not defined. */ #ifndef TRUE #define TRUE 1 #define FALSE 0 #endif /* The following are error codes for pointer allocation. */ #define NULL_ARGUEMENT 1001 #define CORRUPT_DATA_STRUCTURE 1003 #define TYPE_MISMATCH 1008 #define UNSUPPORTED 1010 #define WOULD_EXCEED_LIMIT 1012 #define INTERFACE_IO_ERROR 1014 #define NOT_READY 1022 #define TIMED_OUT 1032 #define OPERATING_SYSTEM_ERROR 1040 #define UNKNOWN_ERROR 1041 #define PORT "/dev/ttyS1" #define TERMINATOR '\n'