summaryrefslogtreecommitdiff
path: root/ptw32_calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_calloc.c')
-rw-r--r--ptw32_calloc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/ptw32_calloc.c b/ptw32_calloc.c
index 45aab88..b98df38 100644
--- a/ptw32_calloc.c
+++ b/ptw32_calloc.c
@@ -40,15 +40,17 @@
#ifdef NEED_CALLOC
void *
-ptw32_calloc(size_t n, size_t s) {
- unsigned int m = n*s;
- void *p;
-
- p = malloc(m);
- if (p == NULL) return NULL;
-
- memset(p, 0, m);
+ptw32_calloc (size_t n, size_t s)
+{
+ unsigned int m = n * s;
+ void *p;
- return p;
+ p = malloc (m);
+ if (p == NULL)
+ return NULL;
+
+ memset (p, 0, m);
+
+ return p;
}
#endif