Mercurial > hg > nginx-ranges
comparison src/core/ngx_string.c @ 6:80ba094c6b3e NGINX_0_1_3
nginx 0.1.3
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 25 Oct 2004 00:00:00 +0400 |
parents | 4b2dafa26fe2 |
children | 46833bd150cb |
comparison
equal
deleted
inserted
replaced
5:985c56ebe724 | 6:80ba094c6b3e |
---|---|
39 * %[0][width]d int | 39 * %[0][width]d int |
40 * %[0][width]i ngx_int_t | 40 * %[0][width]i ngx_int_t |
41 * %[0][width]ui ngx_uint_t | 41 * %[0][width]ui ngx_uint_t |
42 * %[0][width]uxi ngx_uint_t in hex | 42 * %[0][width]uxi ngx_uint_t in hex |
43 * %s null-terminated string | 43 * %s null-terminated string |
44 * %c char | |
44 * %% % | 45 * %% % |
45 * | 46 * |
46 */ | 47 */ |
47 | 48 |
48 u_char *ngx_sprintf(u_char *buf, char *fmt, ...) | 49 u_char *ngx_sprintf(u_char *buf, char *fmt, ...) |
221 } | 222 } |
222 fmt++; | 223 fmt++; |
223 | 224 |
224 continue; | 225 continue; |
225 | 226 |
227 case 'c': | |
228 d = va_arg(arg, int); | |
229 *buf++ = (u_char) (d & 0xff); | |
230 fmt++; | |
231 | |
232 continue; | |
233 | |
226 case '%': | 234 case '%': |
227 *buf++ = '%'; | 235 *buf++ = '%'; |
228 fmt++; | 236 fmt++; |
229 | 237 |
230 continue; | 238 continue; |