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.
alx
Linux man-pages maintainer; https://www.kernel.org/doc/man-pages/
Email: alx@kernel.org
Old username: CacahueteFrito
Posts
See all 25 »Let's consider the following code: const char a[][4] = {"aa", "aaa"}; const char *b[] = {"bb", "bbb"}; const char *const c[] = {"cc", "ccc"}; For shared libraries, both b and c arrays require...
Is it legal ISO C to declare a function as noreturn with a non-void return type (but of course not actually returning)? As far as I can read from the standard, it seems legal. Example: noreturn ...
char *p, *q; p = malloc(1); free(p); q = p; // lvalue conversion Is the last lvalue conversion (= p;) Undefined Behavior or not? We didn't take the address of the local p. C11::6.3.2.1...
2 answers · posted 1y ago by alx · last activity 1y ago by Dirk Herrmann
Is -isystem/path/to/sys/includes a standard compiler option, or is it a compiler extension implemented by gcc, clang, and maybe other compilers? Can I rely on its availability? I couldn't find th...
1 answer · posted 2y ago by alx · last activity 2y ago by deleted user
Let's analyze this code, assuming an architecture where the alignment of int64_t is the same as that of double: void bar(double *f, int64_t *j) { *(int64_t *)f = *j; } void foo(void) ...
strcpy(3) can be safe. Some compilers, such as GCC and Clang, use a feature test macro, _FORTIFY_SOURCE, (see feature_test_macros(7) https://man7.org/linux/man-pages/man7/feature_test_macros.7.htm...
posted 1y ago by alx
Reputation | 580 | |
Number of top-level posts | 16 | |
Number of answers | 9 | |
Sum of received votes (up minus down) | 87 | |
Number of edits made | 127 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 25 | |
Questions | 16 | |
Answers | 9 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 29 |
Flags raised | ||
---|---|---|
Count | 0 |