mcalc

simple interactive program to perform matrix operations. (WIP)
Index Commits Files Refs README LICENSE
prompt.h (476B)
   1 #ifndef _PROMPT_H
   2 #define _PROMPT_H
   3 
   4 #include "matrix.h"
   5 #include "status.h"
   6 
   7 #include <unistd.h>
   8 
   9 #define MAX_MAIN_PROMPT_CMD 3
  10 #define SIZE_OF_BUFFER 10
  11 #define MATRIX_IDS_ARRAY_LENGTH 128
  12 
  13 typedef enum {
  14     MAIN_PROMPT
  15 } user_input_t;
  16 
  17 void prompt_welcome(void);
  18 
  19 status_t user_input(user_input_t option);
  20 status_t get_matrix(matrix_t *matrix, matrix_t **matrix_ids);
  21 status_t matrix_menu_prompt(void);
  22 status_t load_m_hand(matrix_t *matrix);
  23 
  24 #endif