Lines Matching defs:len
29 size_t len; /* Length of the current process title. */
57 pt.len = strlen(argv[0]);
58 pt.cap = pt.len + 1;
98 size_t len;
105 len = strlen(title);
110 if (len >= pt->cap) {
111 len = 0;
113 len = pt->cap - 1;
116 memcpy(pt->str, title, len);
117 memset(pt->str + len, '\0', pt->cap - len);
118 pt->len = len;
138 if (size <= process_title.len) {
143 if (process_title.len != 0)
144 memcpy(buffer, process_title.str, process_title.len + 1);
146 buffer[process_title.len] = '\0';