nxt_file_name.c (10:a8e68ed06863) nxt_file_name.c (65:10688b89aa16)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10/*
11 * Supported formats:
12 * %s null-terminated string
13 * %*s length and string
14 * %FN nxt_file_name_t *
15 * %V nxt_str_t *
16 * %Z '\0', this null is not counted in file name lenght.
17 */
18
19nxt_int_t
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8
9
10/*
11 * Supported formats:
12 * %s null-terminated string
13 * %*s length and string
14 * %FN nxt_file_name_t *
15 * %V nxt_str_t *
16 * %Z '\0', this null is not counted in file name lenght.
17 */
18
19nxt_int_t
20nxt_file_name_create(nxt_mem_pool_t *mp, nxt_file_name_str_t *file_name,
20nxt_file_name_create(nxt_mp_t *mp, nxt_file_name_str_t *file_name,
21 const char *format, ...)
22{
23 u_char ch, *p;
24 size_t length;
25 va_list args;
26 nxt_str_t *v;
27 nxt_bool_t zero;
28 const char *fmt;

--- 173 unchanged lines hidden ---
21 const char *format, ...)
22{
23 u_char ch, *p;
24 size_t length;
25 va_list args;
26 nxt_str_t *v;
27 nxt_bool_t zero;
28 const char *fmt;

--- 173 unchanged lines hidden ---