summaryrefslogtreecommitdiff
path: root/modules/snprintf-gnu
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-24 11:12:47 +0100
committerBruno Haible <bruno@clisp.org>2023-03-24 11:12:47 +0100
commitf18c0053d6103e00ae6a0c954982b5ecd317536b (patch)
treeef6ff88fcd5977c094dd8607e86eccdeff48f105 /modules/snprintf-gnu
parente396564a334c9467ea919068f58678ccdb821e72 (diff)
downloadgnulib-f18c0053d6103e00ae6a0c954982b5ecd317536b.tar.gz
snprintf-gnu: New module.
* m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_IS_POSIX): New macro, extracted from gl_FUNC_SNPRINTF_POSIX. (gl_FUNC_SNPRINTF_POSIX): Require it. Invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS. * m4/snprintf-gnu.m4: New file, based on m4/snprintf-posix.m4. * modules/snprintf-gnu: New file, based on modules/vasnprintf-gnu. * doc/posix-functions/snprintf.texi: Mention the new module.
Diffstat (limited to 'modules/snprintf-gnu')
-rw-r--r--modules/snprintf-gnu29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/snprintf-gnu b/modules/snprintf-gnu
new file mode 100644
index 0000000000..2850c16a34
--- /dev/null
+++ b/modules/snprintf-gnu
@@ -0,0 +1,29 @@
+Description:
+POSIX and GNU compatible snprintf() function: print formatted output to
+a fixed length string
+
+Comment:
+This module should not be used as a dependency from a test module,
+otherwise when this module occurs as a tests-related module, it will
+have side effects on the compilation of the 'vasnprintf' module, if
+that module occurs among the main modules in lib/.
+
+Files:
+m4/snprintf-gnu.m4
+
+Depends-on:
+snprintf-posix
+
+configure.ac:
+gl_FUNC_SNPRINTF_GNU
+
+Makefile.am:
+
+Include:
+<stdio.h>
+
+License:
+LGPL
+
+Maintainer:
+all