ccan
ccan copied to clipboard
The C Code Archive Network
I've been working on a similar concept, called [clib](https://github.com/clibs/clib). Thoughts on working together and possibly allowing ccan modules to be installed with clib(1)?
i want to use in the embedded linux system, but i can't build it success. anyone can help me? thanks in advance
Hello, I will try to explain my problem here: I have a library which use autodata. hkl-factory-private.h: struct _HklFactory { const char *name; const char *description; const darray_string axes; HklFactoryGeometryFunction...
I decided to check if youtube had some videos with subtitles and was pleased to find that it did. I set youtube-dl to work and it told me that the...
Is that acceptable?
For example, add the following to the description of ccan/timers/timers.h timers_dump: ``` * * Example: * timers_dump(&timeouts, stdout); ``` Now ccanlint can't compile it, because timers_dump is only available with...
It should probably get the file list from git? See https://github.com/rustyrussell/stats/commit/ff87456c661896f2e65c6b3a7cf268fd7170ac78
CLN at 5af9d19e9411833b0a584f0906221fa946911fa3 OS: OpenBSD 7.4 Arch: SPARC64 Network: signet Compiler: GCC 8.4 CLN crashes soon after starting. I realize sparc64 is ancient but these logs may be useful? ```...
The contract for `tal_strndup` says: https://github.com/rustyrussell/ccan/blob/cd56b18ae87de6981b88abbe52544d8cc9f8aa0e/ccan/tal/str/str.h#L22-L30 However, when `tal_strndup(ctx, NULL, n)` is called with `n` being any non-zero integer, the returned string will have `tal_count()` equal to `n + 1`...
There is an edge case in `tal_strdup` that results in the return of an unterminated string to the caller. ```c tal_strdup(ctx, NULL) ``` https://github.com/rustyrussell/ccan/blob/cd56b18ae87de6981b88abbe52544d8cc9f8aa0e/ccan/tal/str/str.h#L19 ```c tal_strdup_(ctx, NULL, "char[]") ``` https://github.com/rustyrussell/ccan/blob/cd56b18ae87de6981b88abbe52544d8cc9f8aa0e/ccan/tal/str/str.c#L15-L19...