]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/con-utils.h
fat cp: flags
[z180-stamp.git] / include / con-utils.h
index 86c0df02369c1234b385da33abb1d2694eb5fa01..a71fdf9f3c12a49a42651b9e63b7ffb4b591a685 100644 (file)
@@ -15,16 +15,16 @@ uint_fast8_t tstc(void);
 
 int my_getchar(uint_fast8_t waitforchar);
 
-/* test if ctrl-c was pressed */
+/* Test if ctrl-c was pressed */
 uint_fast8_t ctrlc(void);
 
-
-/* pass 1 to disable ctrlc() checking, 0 to enable.
- * returns previous state
- */
+/* Pass 1 to disable ctrlc() checking, 0 to enable. Returns previous state. */
 uint_fast8_t disable_ctrlc(uint_fast8_t disable);
 
 uint_fast8_t had_ctrlc (void);
 void clear_ctrlc(void);
 
+/* Reads user's confirmation. Returns 1 if user's input is "y", "Y", "yes" or "YES" */
+uint_fast8_t confirm_yes(void);
+
 #endif /* CON_UTILS_H */