Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / xbt / snprintf.c
index 526fc95..97ac538 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2005-2021. The SimGrid Team.
+/* Copyright (c) 2005-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 #endif
 #include <stdio.h>
 
-#include "xbt/sysdep.h"           /* xbt_abort() */
 #include "src/internal_config.h"  /* Do we need vasprintf? */
+#include "xbt/asserts.h"          /* xbt_abort() */
+#include "xbt/misc.h"
 
 #if !HAVE_VASPRINTF
 #include <assert.h>
 #include <stdarg.h> /* vsnprintf */
-int vasprintf(char **ptr, const char *fmt, va_list ap);
+int vasprintf(char** ptr, const char* fmt, va_list ap) XBT_ATTRIB_PRINTF(2, 0);
 int vasprintf(char **ptr, const char *fmt, va_list ap)
 {
   size_t str_m;