Mercurial > hg > octave-kai > gnulib-hg
annotate lib/snprintf.h @ 6992:fb2bee535011
Correct ChangeLog.
author | Derek R. Price <derek@ximbiot.com> |
---|---|
date | Wed, 19 Jul 2006 21:59:39 +0000 |
parents | a48fb0e98c8c |
children |
rev | line source |
---|---|
5282
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
1 /* Formatted output to strings. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
2 Copyright (C) 2004 Free Software Foundation, Inc. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
3 Written by Simon Josefsson. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
4 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
5 This program is free software; you can redistribute it and/or modify |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
6 it under the terms of the GNU General Public License as published by |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
7 the Free Software Foundation; either version 2, or (at your option) |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
8 any later version. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
9 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
13 GNU General Public License for more details. |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
14 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
15 You should have received a copy of the GNU General Public License along |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
16 with this program; if not, write to the Free Software Foundation, |
5848
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5339
diff
changeset
|
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
5282
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
18 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
19 #ifndef SNPRINTF_H |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
20 #define SNPRINTF_H |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
21 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
22 /* Get snprintf declaration, if available. */ |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
23 #include <stdio.h> |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
24 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
25 #if defined HAVE_DECL_SNPRINTF && !HAVE_DECL_SNPRINTF |
5339
53f1d188cbd1
GNU coding style: put a space before opening parenthesis.
Bruno Haible <bruno@clisp.org>
parents:
5282
diff
changeset
|
26 int snprintf (char *str, size_t size, const char *format, ...); |
5282
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
27 #endif |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
28 |
149d795beeb2
New snprintf module from Simon Josefsson.
Paul Eggert <eggert@cs.ucla.edu>
parents:
diff
changeset
|
29 #endif /* SNPRINTF_H */ |