COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
main.c
Go to the documentation of this file.
1 /*
2  * ----------------------------------------------------------------------------
3  * "THE BEER-WARE LICENSE" (Revision 42):
4  * <abort@digitalise.net> wrote this file. As long as you retain this notice you
5  * can do whatever you want with this stuff. If we meet some day, and you think
6  * this stuff is worth it, you can buy me a beer in return J. Dijkstra (04/29/2010)
7  * ----------------------------------------------------------------------------
8  */
9 #include "prowl.h"
10 #include <stdio.h>
11 #include <stdlib.h>
12 
13 #define APP_NAME "ProwlExample"
14 
15 int main(int argc, char** argv) {
16  if (argc < 4)
17  {
18  printf("Usage: prowl <api_key> <priority-number> <event> <description>\n");
19  return 1;
20  }
21 
22  printf("Return code: %d\n", prowl_push_msg(argv[1], atoi(argv[2]), APP_NAME, argv[3], argv[4]));
23 
24  return 0;
25 }
#define APP_NAME
Definition: main.c:13
int prowl_push_msg(char *api_key, int priority, char *application_name, char *event_name, char *description)
Definition: prowl.c:20
int main(int argc, char **argv)
Definition: main.c:15
Send comments to:
COOLFluiD Web Admin