summaryrefslogtreecommitdiffstats
path: root/calloc.c
blob: c03d540bd8eda5f805de697e1ee8425956efd0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ----------------------------------------------------------------------- *
 *   
 *   Copyright 2000-2008 H. Peter Anvin - All Rights Reserved
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as
 *   published by the Free Software Foundation, Inc.,
 *   59 Temple Place Ste 330, Boston MA 02111-1307, USA, version 2.1,
 *   incorporated herein by reference.
 *
 * ----------------------------------------------------------------------- */

/*
 * calloc.c
 *
 * Wrapper around zalloc().  Necessary in case inlining is completely
 * turned off in the user application.
 *
 */

#include <stdlib.h>

/* Do this rather than #include "lpms.h" so we don't get the inline... */
extern void *lpsm_zalloc(size_t size);

void *lpsm_calloc(size_t nmemb, size_t size)
{
  return lpsm_zalloc(nmemb*size);
}