1 //==========================================================================
3 // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
8 // Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
10 //--------------------------------------------------------------------------
18 #if defined(__cplusplus)
22 typedef enum tmemtype
{
30 size_t should be found in stddef.h on most compilers
31 if necessary you can define this to be an unsigned int
34 void *duck_malloc(size_t, dmemType
);
35 void *duck_calloc(size_t, size_t, dmemType
);
36 void duck_free(void *);
38 void *duck_memcpy(void *dest
, const void *source
, size_t length
);
39 void *duck_memset(void *dest
, int val
, size_t length
);
40 int duck_strcmp(const char *one
, const char *two
);
42 /* This is needed by Voxware and QDesign and is generally a good little routine to abstract ! */
43 void *duck_memmove( void *dest
, const void *src
, size_t count
);
47 /**** applicable on some systems only ****/
49 void duck_MEM_Init(long dAddr
,long dSize
);
50 void duck_MEM_Reset(void);
52 /*****************************************/
54 #if defined(__cplusplus)