GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
snprintf.c
Go to the documentation of this file.
1
23
#include <stdio.h>
24
#include <stdlib.h>
25
#include <stdarg.h>
26
#include <unistd.h>
27
#include <assert.h>
28
#include <grass/gis.h>
29
30
/* #ifdef HAVE_SNPRINTF */
31
45
int
G_snprintf
(
char
*str,
size_t
size,
const
char
*fmt, ...)
46
{
47
va_list ap;
48
int
count
;
49
50
va_start(ap, fmt);
51
count = vsnprintf(str, size, fmt, ap);
52
va_end(ap);
53
54
return
count;
55
}
56
57
/* #endif */
lib
gis
snprintf.c
Generated on Wed Jun 6 2012 14:04:29 for GRASS Programmer's Manual by
1.8.1