summaryrefslogtreecommitdiffstats
path: root/gl/snprintf.c
diff options
context:
space:
mode:
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 db1ca9a..960cfdb 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{