Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some MSG examples mainly useful to test the model-checker
[simgrid.git] / examples / smpi / pingpong.c
index 092423b..e7b4a7d 100644 (file)
@@ -1,11 +1,15 @@
 /* A simple example pingpong pogram to test MPI_Send and MPI_Recv */
 
+/* Copyright (c) 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <stdio.h>
 #include <mpi.h>
 
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
          const int tag1 = 42, tag2= 43;           /* Message tag */
          int rank;