summaryrefslogtreecommitdiffstats
path: root/gl/snprintf.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 +0000
commitbd7029a99b0c2974265c6665638ef14a052f42ab (patch)
treef5661ba73366d81ef6e91f889ea7fec5ebe07b6b /gl/snprintf.c
parentf99612320d6eda67644c07be04bb21aa4d7789db (diff)
downloadmonitoring-plugins-bd7029a99b0c2974265c6665638ef14a052f42ab.tar.gz
Sync to latest Gnulib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'gl/snprintf.c')
-rw-r--r--gl/snprintf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gl/snprintf.c b/gl/snprintf.c
index db1ca9af..960cfdb4 100644
--- a/gl/snprintf.c
+++ b/gl/snprintf.c
@@ -1,10 +1,10 @@
1/* Formatted output to strings. 1/* Formatted output to strings.
2 Copyright (C) 2004, 2006 Free Software Foundation, Inc. 2 Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
3 Written by Simon Josefsson and Paul Eggert. 3 Written by Simon Josefsson and Paul Eggert.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 3, or (at your option)
8 any later version. 8 any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
@@ -18,7 +18,8 @@
18 18
19#include <config.h> 19#include <config.h>
20 20
21#include "snprintf.h" 21/* Specification. */
22#include <stdio.h>
22 23
23#include <errno.h> 24#include <errno.h>
24#include <limits.h> 25#include <limits.h>
@@ -37,7 +38,7 @@
37 additional length SIZE limit how much is written into STR. Returns 38 additional length SIZE limit how much is written into STR. Returns
38 string length of formatted string (which may be larger than SIZE). 39 string length of formatted string (which may be larger than SIZE).
39 STR may be NULL, in which case nothing will be written. On error, 40 STR may be NULL, in which case nothing will be written. On error,
40 return a negative value. */ 41 return a negative value. */
41int 42int
42snprintf (char *str, size_t size, const char *format, ...) 43snprintf (char *str, size_t size, const char *format, ...)
43{ 44{