control_symbol.h 466 B

1234567891011121314151617181920
  1. /*
  2. * control_symbol.h
  3. *
  4. * Created on: 06.12.2017
  5. * Author: balbekova
  6. */
  7. #ifndef CONTROL_SYMBOL_H_
  8. #define CONTROL_SYMBOL_H_
  9. #include <stdbool.h>
  10. #define in_range_digit(c, lo, up) ((uint8_t)c >= lo && (uint8_t)c <= up)
  11. #define isdigit_int(c) in_range_digit(c, '0', '9')
  12. #define isfloatdigit(c) (isdigit_int(c) || in_range_digit(c, '.', '.'))
  13. bool control_string_en_digit(char *str, uint8_t len);
  14. #endif /* CONTROL_SYMBOL_H_ */