GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
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 * SPDX-FileCopyrightText: 2001-2014 GRASS Development Team
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 * \author GRASS Development Team
10 *
11 * \date 1999-2014
12 */
13
14#include <stdarg.h>
15
16#include <grass/gis.h>
17#include <grass/glocale.h>
18
19/**
20 * \brief Print a final message.
21 *
22 * \param[in] msg string. Cannot be NULL.
23 * \return
24 */
25void G_done_msg(const char *msg, ...)
26{
27 char buffer[2000];
28 va_list ap;
29
30 va_start(ap, msg);
31 vsprintf(buffer, msg, ap);
32 va_end(ap);
33
34 G_message(_("%s complete. %s"), G_program_name(), buffer);
35}
const char * G_program_name(void)
Return module name.
Definition progrm_nme.c:26
void G_message(const char *,...) __attribute__((format(printf
void G_done_msg(const char *msg,...)
Print a final message.
Definition done_msg.c:25
#define _(str)
Definition glocale.h:10