RayList is a dynamic list library implemented in C, designed to handle various data types and provide efficient memory management. It supports operations such as insertion, deletion, filtering, and asynchronous execution.
- Support for multiple data types (int, float, char, string, etc.)
- Dynamic memory management
- Asynchronous function execution
- Filtering and mapping capabilities
To include the RayList library in your project, simply copy the raylist.h
file into your project directory and include it in your source files and define LIST_C_ macro as follows:
#define LIST_C_
#include "raylist.h"
Here are some basic examples of how to use the RayList library:
int ten = 10;
RLList myList = List(2,
RL_INT, &ten,
RL_STR, "Hello"
);
myList.Append(RL_INT, (void*)&myInt);
myList.Append(RL_STR, "New String");
myList.List_Filter(myFilterFunction, RL_INT, ONLY);
RLList List(int count, ...)
: Initializes a new list with the specified number of items.void Append(Type type, void* data)
: Appends an item to the list.void Filter(FILTERCALLBACK callback, Type type, Filter_Flag flag)
: Filters items in the list based on a callback function.
check raylist documentation website raylist
For more detailed examples, please refer to the examples
directory in the repository.
This library is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please submit a pull request or open an issue for any suggestions or improvements.
For any inquiries, please contact RayDen at [[email protected]].