! \brief * Remove any trailing white char, like spaces, * horizontal tabs, carriage returns and line feeds * * WARNING: String descriptor structure will be * modified ! Make a copy otherwise you * might be unable to free _s->s for * example ! */
| 85 | * example ! |
| 86 | */ |
| 87 | static inline void trim_trailing(str* _s) |
| 88 | { |
| 89 | for(; _s->len > 0; _s->len--) { |
| 90 | TRIM_SWITCH(_s->s[_s->len - 1]); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | |
| 95 | /*! \brief |
no outgoing calls
no test coverage detected