| 179 | } |
| 180 | |
| 181 | void string_rtrim( string * self ) |
| 182 | { |
| 183 | char *p; |
| 184 | assert_invariants( self ); |
| 185 | p = self->value + self->size - 1; |
| 186 | for ( ; p >= self->value && ( *p == '\0' || isspace( *p ) ); *p-- = 0 ); |
| 187 | } |
| 188 | |
| 189 | #ifndef NDEBUG |
| 190 | void string_unit_test() |
no test coverage detected