| 163 | } |
| 164 | |
| 165 | void string_truncate( string * self, size_t n ) |
| 166 | { |
| 167 | assert_invariants( self ); |
| 168 | assert( n <= self->capacity ); |
| 169 | self->value[ self->size = n ] = 0; |
| 170 | assert_invariants( self ); |
| 171 | } |
| 172 | |
| 173 | |
| 174 | void string_pop_back( string * self ) |
no test coverage detected