A2osX/ROOT/ctest/testif.c.txt
burniouf d8631337dd CC:DIRCETIVES and .h
LIBTUI.S.txt demo
2023-01-23 19:33:37 +01:00

48 lines
753 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
AUTO 3,1
#include <stdio.h>
/* C-style comments....
...multi-lines */
#ifndef _TESTDEF_
int testdef;
#define _TESTDEF_ 1
#else
int testdef2;
#endif
int main(int argc, char *argv[])
{
puts("Press a key");
char c=getchar();
printf("char=%d\r\n", c);
if (c == 13)
{
puts("ENTER");
// C99 comments: skip LF
getchar();
}
else
if (c == 32)
{
puts("Not ENTER...but SPACE");
}
else
puts("Some other key...");
int i=0;
while (i++ < 10) {
if (i==5) continue;
printf("count1=%I\r\n", i);
}
do {
printf("count2=%I\r\n", i);
} while (i-- > 0);
}
MAN
TEXT root/ctest/testif.c