GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73577
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
done_msg.c
Go to the documentation of this file.
1 
2 /*!
3  * \file lib/gis/done_msg.c
4  *
5  * \brief GIS Library - Done message functions.
6  *
7  * (C) 2001-2014 by the GRASS Development Team
8  *
9  * This program is free software under the GNU General Public License
10  * (>=v2). Read the file COPYING that comes with GRASS for details.
11  *
12  * \author GRASS GIS Development Team
13  *
14  * \date 1999-2014
15  */
16 
17 #include <stdarg.h>
18 
19 #include <grass/gis.h>
20 #include <grass/glocale.h>
21 
22 /**
23  * \brief Print a final message.
24  *
25  * \param[in] msg string. Cannot be NULL.
26  * \return
27  */
28 
29 void G_done_msg(const char *msg, ...)
30 {
31  char buffer[2000];
32  va_list ap;
33 
34  va_start(ap, msg);
35  vsprintf(buffer, msg, ap);
36  va_end(ap);
37 
38  G_message(_("%s complete. %s"), G_program_name(), buffer);
39 }
const char * G_program_name(void)
Return module name.
Definition: progrm_nme.c:28
void G_done_msg(const char *msg,...)
Print a final message.
Definition: done_msg.c:29
#define _(str)
Definition: glocale.h:13
void G_message(const char *msg,...)
Print a message to stderr.
Definition: gis/error.c:90