diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
commit | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (patch) | |
tree | e6530480020f62a2bdbf249988ec3e2a751d3927 /src/nxt_sprintf.h | |
download | unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.gz unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.bz2 |
Initial version.
Diffstat (limited to 'src/nxt_sprintf.h')
-rw-r--r-- | src/nxt_sprintf.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nxt_sprintf.h b/src/nxt_sprintf.h new file mode 100644 index 00000000..0a927f71 --- /dev/null +++ b/src/nxt_sprintf.h @@ -0,0 +1,21 @@ + +/* + * Copyright (C) Igor Sysoev + * Copyright (C) NGINX, Inc. + */ + +#ifndef _NXT_SPRINTF_H_INCLUDED_ +#define _NXT_SPRINTF_H_INCLUDED_ + + +/* STUB */ +#define NXT_DOUBLE_LEN (1 + DBL_MAX_10_EXP) + + +NXT_EXPORT u_char *nxt_cdecl nxt_sprintf(u_char *buf, u_char *end, + const char *fmt, ...); +NXT_EXPORT u_char *nxt_vsprintf(u_char *buf, u_char *end, + const char *fmt, va_list args); + + +#endif /* _NXT_SPRINTF_H_INCLUDED_ */ |