Hacker News new | ask | show | jobs
by saagarjha 2299 days ago
> _t suffix is the notion used to denote a typedef for a given type /* This example is from do_journal.c in e2fsprogs / struct journal_transaction_s { ... blk64_t start, end; ... }; typedef struct journal_transaction_s journal_transaction_t;

This is undefined behavior in POSIX.

1 comments

And

    unsigned total(unsigned a, unsigned b) { return a + b; }
is undefined behavior in C.