r/C_Programming • u/Kadabrium • Jul 31 '26
Celebrating 200 leetcode questions solved: Sharing yet another C generic data structures library
https://github.com/kadabrium/CStyleDSEveryone who has programmed in C has to have made one of these, and I will not break the trend. The difference (for good?) is this one is made basically only with leetcode in mind, but any form of consistent usage is usage amirite. Single header based, read: copypasta ready
11
Upvotes
âĸ
u/github-guard Jul 31 '26
đ GitHub Guard: Trust Report
â ī¸ This project scored 1/6 â below this subreddit's threshold of 3.
Audit Breakdown:
6
u/Comfortable_Put6016 Aug 02 '26
the C standard forbids the identifiers with <underscore><uppercase> - these are reserved
you randomly disagree with your own api by void-ing key sizes and just strlen-ing byte sequences - who tells you these are null terminated? Also it seems you leak abstractions (at least for the map/set init - e.g. user providing 0 as size)
please learn to format or better use an auto formatter
file names with a leading underscore? Also you randomly change the file namimg convention between directories
you cant byte eq compare structs unless they satisfy certain requirements - e.g. instances of { short a; int b; } might not equal another given 2 padding bytes between a and b to reinstate default alignment for an int type
please take this as criticism and not insults
1
u/AutoModerator Jul 31 '26
Hi /u/Kadabrium,
Your submission in r/C_Programming was filtered because it links to a git project.
You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.
While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.