GRASS GIS 8 Programmer's Manual 8.4.1(2025)-45ca3179ab
Loading...
Searching...
No Matches
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
28void 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_done_msg(const char *msg,...)
Print a final message.
Definition done_msg.c:28
void G_message(const char *msg,...)
Print a message to stderr.
Definition gis/error.c:89
const char * G_program_name(void)
Return module name.
Definition progrm_nme.c:28