]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/utilLib/t_stdlib.c
4 //#include <security_bsafe/bsafe.h>
9 void T_free(POINTER block
)
11 if (block
!= NULL_PTR
) {
16 POINTER
T_malloc(unsigned int len
)
18 return (POINTER
) malloc(len
? len
: 1);
21 /* these are not needed - they are in system.c in security_bsafe */
23 int T_memcmp(POINTER firstBlock
, POINTER secondBlock
, unsigned int len
)
28 return memcmp(firstBlock
, secondBlock
, len
);
31 void T_memcpy(POINTER output
, POINTER input
, unsigned int len
)
34 memcpy(output
, input
, len
);
38 void T_memmove(POINTER output
, POINTER input
, unsigned int len
)
41 memmove(output
, input
, len
);
45 void T_memset(POINTER output
, int value
, unsigned int len
)
48 memset(output
, value
, len
);
53 POINTER
T_realloc(POINTER block
, unsigned int len
)
55 if (block
== NULL_PTR
)
56 return (POINTER
) malloc(len
? len
: 1);
58 return (POINTER
)realloc(block
, len
);