Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rewrite the platform_script.lua used by the test for lua console.
[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 {
18   xbt_set_elm_t elm;
19   xbt_set_cursor_t cursor;
20   gras_init(&argc, argv);
21
22   xbt_set_foreach(gras_datadesc_set_local, cursor, elm) {
23     printf("%s\n", elm->name);
24   }
25
26
27   gras_exit();
28   return 0;
29 }