Import c99types.h and related probes from cdecl99.
[dxcommon.git] / t / printfchk.c
blob8d63f3b02be025740d38f710d82aaa8fbef6f5e8
1 /*
2 * Copyright © 2023 Nick Bowler
4 * Runtime check of printf behaviour for the test suite. Some very old printf
5 * implementations return 0 on success instead of the number of bytes written.
7 * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
8 * This is free software: you are free to do what the fuck you want to.
9 * There is NO WARRANTY, to the extent permitted by law.
11 #include <stdio.h>
13 int main(void)
15 return printf("hello\n") == 0;