Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Pete W
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #281518 |
you could use [strlcpy()](https://linux.die.net/man/3/strlcpy). It's not hard to re-create if not available. If destination is fixed size in a way that allows it, use the sizeof() operator. E.g. `char dst[FIXED_SIZE]; strlcpy(dst, src, sizeof(dst))` (more) |
— | almost 3 years ago |
Comment | Post #280449 |
can you have GCC generate both ELF and another format side by side? I found intel .hex easy to work with (more) |
— | over 3 years ago |
Comment | Post #279895 |
Fair enough, I missed that.
I learned it from looking at the way headers in some system macros were written, and have been doing it ever since. I also got into the habit of using do{} to call attention to there being a block, but this comes from having done a bunch of Perl, where curlies have mult... (more) |
— | over 3 years ago |