~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to innobase/include/ut0mem.ic

  • Committer: monty at mysql
  • Date: 2001-02-17 12:19:19 UTC
  • mto: (554.1.1)
  • mto: This revision was merged to the branch mainline in revision 556.
  • Revision ID: sp1r-monty@donna.mysql.com-20010217121919-07904
Added Innobase to source distribution

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***********************************************************************
 
2
Memory primitives
 
3
 
 
4
(c) 1994, 1995 Innobase Oy
 
5
 
 
6
Created 5/30/1994 Heikki Tuuri
 
7
************************************************************************/
 
8
 
 
9
UNIV_INLINE
 
10
void*
 
11
ut_memcpy(void* dest, void* sour, ulint n)
 
12
{
 
13
        return(memcpy(dest, sour, n)); 
 
14
}
 
15
 
 
16
UNIV_INLINE
 
17
void*
 
18
ut_memmove(void* dest, void* sour, ulint n)
 
19
{
 
20
        return(memmove(dest, sour, n));
 
21
}
 
22
 
 
23
UNIV_INLINE
 
24
int
 
25
ut_memcmp(void* str1, void* str2, ulint n)
 
26
{
 
27
        return(memcmp(str1, str2, n));
 
28
}
 
29
 
 
30
UNIV_INLINE
 
31
void
 
32
ut_free(void* ptr)
 
33
{
 
34
        free(ptr);
 
35
}
 
36
 
 
37
UNIV_INLINE
 
38
char*
 
39
ut_strcpy(char* dest, char* sour)
 
40
{
 
41
        return(strcpy(dest, sour));
 
42
}
 
43
 
 
44
UNIV_INLINE
 
45
ulint
 
46
ut_strlen(char* str)
 
47
{
 
48
        return(strlen(str));
 
49
}
 
50
 
 
51
UNIV_INLINE
 
52
int
 
53
ut_strcmp(void* str1, void* str2)
 
54
{
 
55
        return(strcmp((char*)str1, (char*)str2));
 
56
}
 
57