Replace C++ with C
See original GitHub issueCurrent C++ parts:
- Chunk store relies on
-
std::map
--> rxi/map -
std::set
--> barrust/set -
std::vector
-
- Some parts rely on
std::string
, which can be replaced by Cchar[]
and related functions
TBD:
-
googletesting
is implemented in C++. Other candidates for the testing framework:CUnit
,CMocka
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
What function is to replace a substring from a string in C?
simplification: you can replace that first for loop with for (count = 1; ins = strstr(ins + rep_len, rep); ++count) {} , then...
Read more >C program to Replace a word in a text by another given word
The idea is to traverse the original string and count the number of times old word occurs in the string. Now make a...
Read more >Why not replace C with C++? - Quora
Like a few others pointed out - because C++ is not really a good replacement for C. They are not the same -...
Read more >replace string in C - gists · GitHub
replace string in C. GitHub Gist: instantly share code, notes, and snippets.
Read more >C Program to Replace All Occurrence of a Character in a String
In this article, we will show you, How to write a C Program to Replace All Occurrence of a Character in a String...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, C is also more efficient than C++. I have added this task to TODO, so, probably in the following weeks, I will change the project to pure C.
BTW, Makefile support has been added, and it works correctly. README.md is also updated accordingly, so you can have a try in case I missed anything. : )
CMake still lives in the project just for my personal preference. I will maintain both building scripts, so we can keep both of them.
Will reopen this issue, if we decide to replace
googletesting