Files
ctdd/main.c
T
portersky 657d154560 style: fix include order in all source files
Move C stdlib headers before local/project headers with a
blank line separator, matching the AGENTS.md include order rule.

Replace em dash with colon in main.c comment.
2026-06-15 04:35:44 +02:00

23 lines
635 B
C

// Template placeholder: replace with your own entry point.
// Remove or rename this file when scaffolding a new project.
#include "ctdd/str.h"
#include "ctdd/report.h"
#include "ctdd/logger.h"
int main([[maybe_unused]]int argc, [[maybe_unused]]char const* argv[]) {
char const* words[] = { "hello", "world", "ctdd", "tdd" };
int n = 4, tdd_words = 0;
for (int i = 0; i < n; i++) {
if (str_ends_with(words[i], "tdd"))
tdd_words++;
}
report_value("words ending in 'tdd'", tdd_words);
char upper[32];
str_upper(upper, "hello, tdd", sizeof(upper));
log_info(upper);
return 0;
}