CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

about nc_clrwspace in internal.c #226

Closed tianguau closed 8 years ago

tianguau commented 8 years ago

i think this function is used to clear head & tail whitespace, and retain whitespace between other chars.

but the phiscal truth is when the first char is whitespace :: all whitespace in string will be cleard. when the first char is not whitespace :: the tail whitespace is retained.