Working notebook: a commonplace blog for collecting notes & exploring ideas.
Home. Site Map. Subscribe. More at expLog.

References

Useful references / articles on C; organized by date of collection not origin.

January 2025

Previously collected

Modern C

#include <stdlib.h>
#include <stdio.h>

int main(int argc, [[maybe_unused]] char* argv[argc+1]) {
	return EXIT_SUCCESS;
}
double A[2] = {
  [1] = 2.9,
};
clang -std=c2x -Wall -lm -o output file.c
size_t strlen(char const string[static 1])
Level
 Name
 Other
 Category
 Where
 printf
0
 size_t
 Unsigned
 <stddef.h>
 "%zu" "%zx"
0
 double
 Floating
 Built in
 "%e" "%f" "%g" "%a"
0
 signed
 int
 Signed
 Built in
 "%d"
0
 unsigned
 Unsigned
 Built in
 "%b" "%o" "%u" "%x"
0
 bool
 _Bool
 Unsigned
 Built in (since C23)
 "%d" as 0 or 1
1
 ptrdiff_t
 Signed
 <stddef.h>
 "%td"
1
 char const*
 String
 Built in
 "%s"
1
 char
 Character
 Built in
 "%c"
1
 void*
 Pointer
 Built in
 "%p"
2
 unsigned char
 Unsigned
 Built in
 "%hhu" "%02hhx"

Kunal