srdja / Collections-C

A library of generic data structures for the C language.
http://srdja.github.io/Collections-C
GNU Lesser General Public License v3.0
2.8k stars 328 forks source link

Is "stdio.h" necessary? #159

Closed Toliak closed 1 year ago

Toliak commented 1 year ago

There is (https://github.com/srdja/Collections-C/blob/master/src/include/cc_ring_buffer.h#L13) the line #include <stdio.h>. I haven't found any printf/scanf in the code. Also tried to remove this line and the code compiled correctly, therefore, I think it is unnecessary.

srdja commented 1 year ago

Yeah, definitely shouldn't be there. I guess it's a leftover from printf debugging.