stefanct / sglib Goto Github PK
View Code? Open in Web Editor NEWSGLIB - A Simple Generic Library for C (originally by Marian Vittek and not maintained by Stefan Tauner at all!)
SGLIB - A Simple Generic Library for C (originally by Marian Vittek and not maintained by Stefan Tauner at all!)
This directory contains Sglib - a simple generic library for C. The distribution contains: sglib.h - this is the generic library, the file can be directly used, or you can move it to your include directory. doc - directory containing the documentation. The main page of the documentation is stored in the doc/index.html. samples - directory storing simple executable files using sglib.h. You can run all the samples together with self-test routine by running make in this directory.
I know that you describe this in the header, but putting it there would make it much clearer.
What license is this under?
Adding to a sorted array is a pretty common task, though subject to errors.
Would be nice to have it generalized.
Line 554 in 1d17ed7
This allows consecutive use of sglib_type_add_before(dllist_first), in the corner case where the dllist_first is NULL to begin with.
Current solution results in keeping the dllist_first pointer value the same as first call and place all new entries behind this first one which is continuously is moving further away from the 'front'.
Hence, new entries are placed at length-2 position!
This change fixed it. I can also push the change for review, if you like.
I am only working with the doubly ended linked list.
Best regards
Hi,
Can this Software be freely used under ANY license? The terms are little ambiguous and I understand similar questions raised earlier.
"...You can also use derivative forms freely under terms of Open Source
Software license or under terms of GNU Public License. ..."
Does this mean this can be used under "Apache, BSD" licenses as well ?
You specify GPL as a licensing option, but not which version. This is quite germane to its re-use, so a clarification would be appreciated.
I couldn't find a mention - if a comparator(a, b)
returns -1, will a
or b
be the first in a sorted array/list?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.