Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
192 B

  1. /*
  2. UTILS MODULE
  3. Copyright (C) 2017 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. char * ltrim(char * s) {
  6. char *p = s;
  7. while ((unsigned char) *p == ' ') ++p;
  8. return p;
  9. }