Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any library for generic datatypes in C? [closed]

I am trying to write a 2d game engine in C (no c++). What are some good libraries that have generic data types I may need - for example queues, trees, maps, lists, and so on?

like image 795
kthakore Avatar asked Mar 16 '09 08:03

kthakore


People also ask

What happens if standard library is not present in C?

But in pure C, with no extensions, and the standard library functions removed, you basically can't do anything other than read the command line arguments, do some work, and return a status code from main .

What are generic libraries?

a generic library is one that can be used with more than one type, e.g. more than one number type. in c11 a generic definition can look like this: #define cbrt(X) _Generic((X), long double: cbrtl, \ default: cbrt, \ float: cbrtf)(X)

What are the types of libraries in C?

Two types of libraries in C: Static and dynamic There are two types of libraries in C static and dynamic. Dynamic libraries are shared libraries with specific functions launched during the execution of a program and contribute to “reduced memory consumption”(techopedia.com). Dynamic libraries are linked in two stages.

Does C have stack library?

The pop and return external functions are provided with the argument stack library. The pop external functions are described below according to the data type of the value that each pops from the argument stack. The return external functions are described in Return functions for C.


1 Answers

Take a look at GLib - it has trees, hashmaps, linked lists and queues.

Wikipedia article.

like image 108
qrdl Avatar answered Sep 21 '22 05:09

qrdl