Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
3d871a3d39868dec8e294104058c1b6c43a64006
[simgrid.git] / doc / gtut-files / 09-datatype-dump.c
1 /* Copyright (c) 2006, 2010. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5   * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <gras.h>
8 #include <stdio.h>
9
10 /* We must set this to make logging mecanism happy */
11 extern const char *_gras_procname;
12
13 /* This is a private data of gras/Datadesc we want to explore */
14 xbt_set_t gras_datadesc_set_local=NULL;
15
16 int main(int argc, char *argv[]) {
17   xbt_set_elm_t elm;
18   xbt_set_cursor_t cursor;
19   gras_init(&argc,argv);
20    
21   xbt_set_foreach(gras_datadesc_set_local, cursor, elm) {
22      printf("%s\n",elm->name);
23   }
24    
25    
26   gras_exit();
27   return 0;
28 }