GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
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 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 */
27void G_done_msg(const char *msg, ...)
28{
29 char buffer[2000];
30 va_list ap;
31
32 va_start(ap, msg);
33 vsprintf(buffer, msg, ap);
34 va_end(ap);
35
36 G_message(_("%s complete. %s"), G_program_name(), buffer);
37}
const char * G_program_name(void)
Return module name.
Definition progrm_nme.c:28
void G_message(const char *,...) __attribute__((format(printf
void G_done_msg(const char *msg,...)
Print a final message.
Definition done_msg.c:27
#define _(str)
Definition glocale.h:10