diff options
author | pommicket <pommicket@gmail.com> | 2022-11-07 11:19:03 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-11-07 11:19:03 -0500 |
commit | 978248bc21b336960efcf8b2599f13bb5ec1cf6a (patch) | |
tree | ead0bc7a996a1fd9b85ab3e214df20a3bcb12541 /test.c | |
parent | 23fb593011ce985e6e50e26e9765f78d27994d40 (diff) |
c (working) and c++ (not working) inputs
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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); } |