util.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * =====================================================================================
  3. *
  4. * ________ .__ __ ________ ____ ________
  5. * \_____ \ __ __|__| ____ | | __\______ \ _______ _/_ |/ _____/
  6. * / / \ \| | \ |/ ___\| |/ / | | \_/ __ \ \/ /| / __ \
  7. * / \_/. \ | / \ \___| < | ` \ ___/\ / | \ |__\ \
  8. * \_____\ \_/____/|__|\___ >__|_ \/_______ /\___ >\_/ |___|\_____ /
  9. * \__> \/ \/ \/ \/ \/
  10. *
  11. * www.optixx.org
  12. *
  13. *
  14. * Version: 1.0
  15. * Created: 07/21/2009 03:32:16 PM
  16. * Author: david@optixx.org
  17. *
  18. * =====================================================================================
  19. */
  20. #ifndef __UTIL_H__
  21. #define __UTIL_H__
  22. uint8_t *util_strupper(uint8_t * s);
  23. uint8_t *util_strlower(uint8_t * s);
  24. void util_chomp(uint8_t * s);
  25. void util_trim(uint8_t * s);
  26. uint32_t util_sscandec(const uint8_t * s);
  27. uint32_t util_sscanhex(const uint8_t * s);
  28. uint8_t util_sscanbool(const uint8_t * s);
  29. #endif