learning-cc4e

Solution to https://cc4e.com/. If you copy these you're not right in the head.
git clone https://kaka.farm/~git/learning-cc4e
Log | Files | Refs

solution.c (394B)


      1 void py_lstrip(inp)
      2     char inp[];
      3 {
      4   char *first_non_space_location;
      5 
      6   for (first_non_space_location = inp;
      7        *first_non_space_location != '\0'
      8        && *first_non_space_location == ' ';
      9        ++first_non_space_location) {
     10   }
     11 
     12   for (;
     13        *first_non_space_location != '\0';
     14        ++inp, ++first_non_space_location) {
     15     *inp = *first_non_space_location;
     16   }
     17 
     18   *inp = '\0';
     19 }