-/* Copyright (c) 2013-2019. The SimGrid Team.
+/* Copyright (c) 2013-2023. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
{
xbt_dict_t mydict = get_dict();
FILE* fpInput = fopen(inputfile, "r");
- if (fpInput == NULL)
- printf("Error while opening the inputfile");
+ xbt_assert(fpInput != NULL, "Error while opening the inputfile");
fseek(fpInput, 0, 0);
char line[200];
for (int i = 0; i < (data->n - 1); i++)
data->percentage[i] = atof(strtok_r(NULL, "\t", &saveptr));
- xbt_dict_set(mydict, key, data, NULL);
+ xbt_dict_set(mydict, key, data);
}
fclose(fpInput);
}
data->percentage[i] = atof(strtok_r(NULL, "\t", &saveptr));
}
- xbt_dict_set(mydict, key, data, NULL);
+ xbt_dict_set(mydict, key, data);
}
fclose(fpInput);
}