Lines Matching defs:length
103 Also adjust the starting position and length of the string.
111 get_uri_string (const char *at, int *pos, int *length)
115 strncpy(buf,at + *pos, *length);
116 buf[*length] = '\0';
123 *length -= 5; /* url() */
128 (*length)--;
131 while (isspace (at[*pos + *length - 1]))
133 (*length)--;
139 *length -= 2;
142 uri = xmalloc (*length + 1);
145 strncpy (uri, at + *pos, *length);
146 uri[*length] = '\0';
158 int pos, length;
188 length = yyleng;
192 uri = get_uri_string (ctx->text, &pos, &length);
198 length -= 2;
199 uri = xmalloc (length + 1);
200 strncpy (uri, yytext + 1, length);
201 uri[length] = '\0';
206 struct urlpos *up = append_url (uri, pos, length, ctx);
227 length = yyleng;
228 uri = get_uri_string (ctx->text, &pos, &length);
232 struct urlpos *up = append_url (uri, pos, length, ctx);
261 DEBUGP (("Loaded %s (size %s).\n", file, number_to_static_string (fm->length)));
270 get_urls_css (&ctx, 0, fm->length);