search for: front_len

Displaying 1 result from an estimated 1 matches for "front_len".

Did you mean: front_end
2000 Jun 02
0
util_str.c patch
...+++ ./util_str.c Fri Jun 2 22:15:13 2000 @@ -507,107 +507,112 @@ trim the specified elements off the front and back of a string ********************************************************************/ BOOL trim_string(char *s,const char *front,const char *back) { - BOOL ret = False; - size_t front_len = (front && *front) ? strlen(front) : 0; - size_t back_len = (back && *back) ? strlen(back) : 0; - size_t s_len; - - while (front_len && strncmp(s, front, front_len) == 0) - { - char *p = s; - ret = True; - while (1) - { - if (!(*p = p[front_len])) -...