strrtrim
Removes trailing spaces from the end of a string. See "trim" to remove leading spaces.
AI
Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Mã nguồn
/* strrtrim : removes trailing spaces from the end of a string*/
static char* strrtrim( char* s)
{
int i;
if (s) {
i = strlen(s); while ((--i)>0 && isspace(s[i]) ) s[i]=0;
}
return s;
}
Bình luận gốc (3)
Được khôi phục từ Wayback Machine