GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
done_msg.c
Go to the documentation of this file.
1 /*!
2  * \file lib/gis/done_msg.c
3  *
4  * \brief GIS Library - Done message functions.
5  *
6  * (C) 2001-2014 by the GRASS Development Team
7  *
8  * This program is free software under the GNU General Public License
9  * (>=v2). Read the file COPYING that comes with GRASS for details.
10  *
11  * \author GRASS GIS Development Team
12  *
13  * \date 1999-2014
14  */
15 
16 #include <stdarg.h>
17 
18 #include <grass/gis.h>
19 #include <grass/glocale.h>
20 
21 /**
22  * \brief Print a final message.
23  *
24  * \param[in] msg string. Cannot be NULL.
25  * \return
26  */
27 
28 void G_done_msg(const char *msg, ...)
29 {
30  char buffer[2000];
31  va_list ap;
32 
33  va_start(ap, msg);
34  vsprintf(buffer, msg, ap);
35  va_end(ap);
36 
37  G_message(_("%s complete. %s"), G_program_name(), buffer);
38 }
void G_message(const char *,...) __attribute__((format(printf
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:28
#define _(str)
Definition: glocale.h:10