++ 249Utilities ++ Main Program ++ Utilities for File IO and Console ++ Makefile template for the project
73 lines
1.4 KiB
C
73 lines
1.4 KiB
C
// Preprocessor directives
|
|
#ifndef STANDARD_CONSTANTS_H
|
|
#define STANDARD_CONSTANTS_H
|
|
|
|
// Include Boolean
|
|
#include <stdbool.h>
|
|
|
|
// global constants
|
|
|
|
// constant for end of c-string null character
|
|
#define CARRIAGE_RETURN_CHAR '\r'
|
|
|
|
//constant for a COLON
|
|
#define COLON ':'
|
|
|
|
//constant for a COMMA
|
|
#define COMMA ','
|
|
|
|
//Constant to print a dash
|
|
#define DASH '-'
|
|
|
|
// highest printable character
|
|
#define HIGHEST_PRINTABLE_CHAR '~'
|
|
|
|
// constant for huge string length
|
|
#define HUGE_STR_LEN 256
|
|
|
|
// lowest printable character
|
|
#define LOWEST_PRINTABLE_CHAR ' '
|
|
|
|
// constant for small string length
|
|
#define MIN_STR_LEN 32
|
|
|
|
// constant for maximum string length
|
|
#define MAX_STR_LEN 128
|
|
|
|
// constant for end of c-string null character
|
|
#define NEWLINE_CHAR '\n'
|
|
|
|
// first non-printable above ASCII
|
|
#define DELETE_KEY 127
|
|
|
|
// constant for end of c-string null character
|
|
#define NULL_CHAR '\0'
|
|
|
|
// columns found in grade sheet before grading columns
|
|
#define NUM_BASE_COLS 5
|
|
|
|
// constant for number of grading frequency bins
|
|
#define NUM_FREQUENCY_BINS 10
|
|
|
|
//Constant for printing a pipe
|
|
#define PIPE '|'
|
|
|
|
//Constant for a period
|
|
#define PERIOD '.'
|
|
|
|
//Constant for PRECISION, 2 digits
|
|
#define PRECISION_2 2
|
|
|
|
//Constant for PRECISION, 4 digits
|
|
#define PRECISION_4 4
|
|
|
|
// constant for space character
|
|
#define SPACE ' '
|
|
|
|
// constant for standard string length
|
|
#define STD_STR_LEN 64
|
|
|
|
// constant for smallest string length
|
|
#define TINY_STR_LEN 16
|
|
|
|
#endif // STANDARD_CONSTANTS
|