S2OPC OPCUA Toolkit
sopc_mem_alloc.h
Go to the documentation of this file.
1 /*
2  * Licensed to Systerel under one or more contributor license
3  * agreements. See the NOTICE file distributed with this work
4  * for additional information regarding copyright ownership.
5  * Systerel licenses this file to you under the Apache
6  * License, Version 2.0 (the "License"); you may not use this
7  * file except in compliance with the License. You may obtain
8  * a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
25 #ifndef SOPC_MEM_ALLOC_H_
26 #define SOPC_MEM_ALLOC_H_
27 
28 #include <stddef.h>
29 
41 void* SOPC_Malloc(size_t size);
42 
50 void SOPC_Free(void* ptr);
51 
64 void* SOPC_Calloc(size_t nmemb, size_t size);
65 
74 void* SOPC_Realloc(void* ptr, size_t old_size, size_t new_size);
75 
76 #endif /* SOPC_MEM_ALLOC_H_ */
SOPC_Free
void SOPC_Free(void *ptr)
Frees memory.
SOPC_Calloc
void * SOPC_Calloc(size_t nmemb, size_t size)
Allocates memory.
SOPC_Realloc
void * SOPC_Realloc(void *ptr, size_t old_size, size_t new_size)
Re-allocates memory.
SOPC_Malloc
void * SOPC_Malloc(size_t size)
Allocates memory.