]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/threadTest/t_stdlib.c
4 #include <BSafe/bsafe.h>
6 void T_free(POINTER block
)
8 if (block
!= NULL_PTR
) {
13 POINTER
T_malloc(unsigned int len
)
15 return (POINTER
) malloc(len
? len
: 1);
18 int T_memcmp(POINTER firstBlock
, POINTER secondBlock
, unsigned int len
)
23 return memcmp(firstBlock
, secondBlock
, len
);
26 void T_memcpy(POINTER output
, POINTER input
, unsigned int len
)
29 memcpy(output
, input
, len
);
33 void T_memmove(POINTER output
, POINTER input
, unsigned int len
)
36 memmove(output
, input
, len
);
40 void T_memset(POINTER output
, int value
, unsigned int len
)
43 memset(output
, value
, len
);
47 POINTER
T_realloc(POINTER block
, unsigned int len
)
49 if (block
== NULL_PTR
)
50 return (POINTER
) malloc(len
? len
: 1);
52 return (POINTER
)realloc(block
, len
);