X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a78b54c302824f7eb5180385f3346502bede10b2..1c6ecd7825422241dd932318a4ba03c3df1de985:/doc/gtut-files/09-datatype-dump.c diff --git a/doc/gtut-files/09-datatype-dump.c b/doc/gtut-files/09-datatype-dump.c index 31e54bf706..8124064647 100644 --- a/doc/gtut-files/09-datatype-dump.c +++ b/doc/gtut-files/09-datatype-dump.c @@ -1,3 +1,9 @@ +/* Copyright (c) 2006, 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 #include @@ -5,18 +11,19 @@ extern const char *_gras_procname; /* This is a private data of gras/Datadesc we want to explore */ -xbt_set_t gras_datadesc_set_local=NULL; +xbt_set_t gras_datadesc_set_local = NULL; -int main(int argc, char *argv[]) { +int main(int argc, char *argv[]) +{ xbt_set_elm_t elm; xbt_set_cursor_t cursor; - gras_init(&argc,argv); - + gras_init(&argc, argv); + xbt_set_foreach(gras_datadesc_set_local, cursor, elm) { - printf("%s\n",elm->name); + printf("%s\n", elm->name); } - - + + gras_exit(); return 0; }