MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / trim_trailing

Function trim_trailing

trim.h:87–92  ·  view source on GitHub ↗

! \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 ! */

Source from the content-addressed store, hash-verified

85 * example !
86 */
87static 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

Callers 6

tr_eval_stringFunction · 0.85
trimFunction · 0.85
b2b_tm_cbackFunction · 0.85
mid_reg_pack_ciFunction · 0.85
parse_contactsFunction · 0.85
pack_ciFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected