diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-05 21:09:20 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-05 21:09:20 +0200 |
| commit | 8ca205395dc7d76fecd2baf8d6b59d7df01825fd (patch) | |
| tree | 9151d7620c88760e3cdb2d4df9799ccc99922647 /Examples | |
| parent | 150b0404a4c074bb90692c037f6efb93caa93325 (diff) | |
MHR-24: Add run_format.sh
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Examples')
| -rw-r--r-- | Examples/ExampleCDialect.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Examples/ExampleCDialect.c b/Examples/ExampleCDialect.c index 8c65bf0..e6d92fb 100644 --- a/Examples/ExampleCDialect.c +++ b/Examples/ExampleCDialect.c @@ -1,17 +1,20 @@ -struct { +struct +{ int a; int b; int c; }; -int __ImageStart(int argc, char const* argv[]) { - int* foo = 0x1000; +int __ImageStart(int argc, char const* argv[]) +{ + int* foo = 0x1000; - if (foo == 57) { - foo = 0x2000; - *foo = 5; - return foo; - } + if (foo == 57) + { + foo = 0x2000; + *foo = 5; + return foo; + } - return 57; + return 57; } |
