GRASS Programmer's Manual 6.4.1(2011)
snprintf.c
Go to the documentation of this file.
00001 
00023 #include <stdio.h>
00024 #include <stdlib.h>
00025 #include <stdarg.h>
00026 #include <unistd.h>
00027 #include <assert.h>
00028 #include <grass/gis.h>
00029 
00030 /* #ifdef HAVE_SNPRINTF */
00031 
00045 int G_snprintf(char *str, size_t size, const char *fmt, ...)
00046 {
00047     va_list ap;
00048     int count;
00049 
00050     va_start(ap, fmt);
00051     count = vsnprintf(str, size, fmt, ap);
00052     va_end(ap);
00053 
00054     return count;
00055 }
00056 
00057 /* #endif */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines