Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
cl_types.h
Go to the documentation of this file.
1#ifndef __CL_TYPES_H
2#define __CL_TYPES_H
3
4// COMPARE FUNCTION
5
7typedef int (*CL_CompareFn)(const void *, const void *);
8
9#define _COMPARE_FN(__name, __a_param, __b_param, ...) \
10 _PRIVATE int __name(const void *const __a_param, const void *const __b_param) __VA_ARGS__
11
12// ERRORS
13
19// #define CL_AUTO_SIZE 0
20// #define CL_AUTO_SIZE_BASE_COUNT 10
21
43
44#endif
int(* CL_CompareFn)(const void *, const void *)
A function pointer type for comparing two elements.
Definition cl_types.h:7
CL_Error
Specify this in the size parameter of the collections initialization to tell the library that the num...
Definition cl_types.h:24
@ CL_ERR_EMPTY
Empty collection.
Definition cl_types.h:41
@ CL_ERR_NOT_FOUND
Not found.
Definition cl_types.h:38
@ CL_ERR_OUT_OF_BOUNDS
Out of bounds.
Definition cl_types.h:32
@ CL_ERR_NO_MEMORY
No memory available.
Definition cl_types.h:35
@ CL_ERR_INVALID_PARAMS
Invalid arguments.
Definition cl_types.h:29
@ CL_ERR_OK
No error.
Definition cl_types.h:26