Lines Matching refs:str
174 /* cut the last byte of the str */
175 static inline int hash_update_bite_str(struct lws_genhash_ctx *ctx, const char * str)
178 if ((ret = lws_genhash_update(ctx, (void *)str, strlen(str)-1))) {
185 static inline int hash_update_str(struct lws_genhash_ctx *ctx, const char * str)
188 if ((ret = lws_genhash_update(ctx, (void *)str, strlen(str)))) {
471 char *str = NULL, *val = NULL, *line = NULL, sth[128];
507 str = strchr(line, '=');
508 if (!str)
511 str++;
521 slen = (size_t)(rd - lws_ptr_diff(str, line));
523 while (slen && *str == ' ') {
524 str++;
528 while (slen && (str[slen - 1] == '\r' ||
529 str[slen - 1] == '\n' ||
530 str[slen - 1] == ' '))
537 strncpy(val, str, slen);