GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
done_msg.c
Go to the documentation of this file.
1 
17 #include <stdarg.h>
18 
19 #include <grass/gis.h>
20 #include <grass/glocale.h>
21 
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:27
void G_done_msg(const char *msg,...)
Print a final message.
Definition: done_msg.c:29
void G_message(const char *msg,...)
Print a message to stderr.
Definition: gis/error.c:89