Lines Matching refs:bytes
25 extern void *crAlloc( unsigned int bytes );
26 void *crAlloc( unsigned int bytes )
31 extern void *crCalloc( unsigned int bytes );
32 void *crCalloc( unsigned int bytes )
48 crError( "Out of memory trying to allocate %d bytes!", nbytes );
58 fprintf(stderr, "crAllocDebug(%d bytes) in %s at %d\n", nbytes, file, line);
73 crError( "Out of memory trying to (c)allocate %d bytes!", nbytes );
84 fprintf(stderr, "crCallocDebug(%d bytes) in %s at %d\n", nbytes, file, line);
105 crError( "Couldn't realloc %d bytes!", nbytes );
115 DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes )
117 CRASSERT(dst || 0==bytes);
118 CRASSERT(src || 0==bytes);
119 (void) memcpy( dst, src, bytes );
122 DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes )
125 memset( ptr, value, bytes );
128 DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes )
131 memset( ptr, 0, bytes );
134 DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes )
138 return memcmp( p1, p2, bytes );