Lines Matching refs:buffer
47 static int char_left_gc(const char *buffer, size_t len) in char_left_gc() argument
52 if (buffer[i] == ' ' || in char_left_gc()
53 buffer[i] == '\t') in char_left_gc()
62 static int char_right_gc(const char *buffer, size_t len) in char_right_gc() argument
67 if (buffer[i] == ' ' || in char_right_gc()
68 buffer[i] == '\t' || in char_right_gc()
69 buffer[i] == '\n' || in char_right_gc()
70 buffer[i] == '\0') in char_right_gc()
79 static char *trim_whitespace_in_place(char *buffer) in trim_whitespace_in_place() argument
81 buffer += char_left_gc(buffer, strlen(buffer)); in trim_whitespace_in_place()
82 buffer[char_right_gc(buffer, strlen(buffer))] = '\0'; in trim_whitespace_in_place()
83 return buffer; in trim_whitespace_in_place()