summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-07 11:19:03 -0500
committerpommicket <pommicket@gmail.com>2022-11-07 11:19:03 -0500
commit978248bc21b336960efcf8b2599f13bb5ec1cf6a (patch)
treeead0bc7a996a1fd9b85ab3e214df20a3bcb12541 /test.c
parent23fb593011ce985e6e50e26e9765f78d27994d40 (diff)
c (working) and c++ (not working) inputs
Diffstat (limited to 'test.c')
-rw-r--r--test.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/test.c b/test.c
index 4b86a0b..b8a6d61 100644
--- a/test.c
+++ b/test.c
@@ -1,12 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
-extern int errno;
-int main() {
- errno = 0;
- fopen("zzz","r");
- printf("%d\n",errno);
- //printf("hello\n");
+int my_number;
+void entry() {
+ my_number = 137;
+ printf("%d\n",my_number);
exit(0);
}