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 Lover of Structureâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #289488 |
Since you admitted to it, I should do the same: Knowing that you're active here, I knew you'd see this anyway, plus it's better to have this question not have a dependency on our lovely sister site ;-) (more) |
— | over 1 year ago |
Edit | Post #289488 |
Post edited: formatting (very minor) |
— | over 1 year ago |
Edit | Post #289488 |
Post edited: added one more example |
— | over 1 year ago |
Comment | Post #289488 |
I made some edits; feel free to have a look. (more) |
— | over 1 year ago |
Edit | Post #289488 |
Post edited: made question more specific in two aspects |
— | over 1 year ago |
Edit | Post #289488 | Initial revision | — | over 1 year ago |
Question | — |
Why does calloc accept 2 arguments, and with what arguments should one call it? According to the standard (C17 draft, 7.22.3.2) The function `calloc` > `void calloc(sizet nmemb, sizet size);` "allocates space for an array of `nmemb` objects, each of whose size is `size` [and] initialize[s] [...] all bits [to] zero". Like `malloc`, it returns a `void ` pointer to the alloc... (more) |
— | over 1 year ago |
Comment | Post #289415 |
Could you give an example of a good "higher-integrity compiler"? (more) |
— | over 1 year ago |
Edit | Post #288916 |
Post edited: disambiguation (minor) of wording |
— | over 1 year ago |
Edit | Post #288928 |
Post edited: minor typos |
— | over 1 year ago |
Edit | Post #288916 |
Post edited: |
— | over 1 year ago |
Suggested Edit | Post #288928 |
Suggested edit: minor typos (more) |
helpful | over 1 year ago |
Edit | Post #288916 |
Post edited: |
— | over 1 year ago |
Comment | Post #288916 |
I have seen relatively few functions in industrial production code marked as `static`, and it's the same for instructional materials on C. But I can't quantitatively prove it. (more) |
— | over 1 year ago |
Edit | Post #288916 |
Post edited: speculative answer added |
— | over 1 year ago |
Edit | Post #288916 |
Post edited: |
— | over 1 year ago |
Edit | Post #288916 | Initial revision | — | over 1 year ago |
Question | — |
What are disadvantages of static functions (ie functions with internal linkage) in C? Functions in C have external linkage by default. In other words, the storage class specifier `extern` is applied to functions by default, with the effect that they are visible to all translation units. The storage class specifier `static` gives functions internal linkage and restricts visibility t... (more) |
— | over 1 year ago |