X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf703c9202818f2d52477ff7dd89d9374e04d842..4a1bfd9a25fa2b60dd146d55d56c9e4635e76e06:/src/xbt/mmalloc/mcalloc.c diff --git a/src/xbt/mmalloc/mcalloc.c b/src/xbt/mmalloc/mcalloc.c deleted file mode 100644 index 6c94d46a76..0000000000 --- a/src/xbt/mmalloc/mcalloc.c +++ /dev/null @@ -1,26 +0,0 @@ -/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. - This file was then part of the GNU C Library. */ - -/* Copyright (c) 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 /* GCC on HP/UX needs this before string.h. */ -#include /* Prototypes for memcpy, memmove, memset, etc */ - -#include "mmprivate.h" - -/* Allocate an array of NMEMB elements each SIZE bytes long. - The entire array is initialized to zeros. */ - -void *mcalloc(xbt_mheap_t md, register size_t nmemb, register size_t size) -{ - register void *result; - - if ((result = mmalloc(md, nmemb * size)) != NULL) { - memset(result, 0, nmemb * size); - } - return (result); -}