source:
CIVL/mods/dev.civl.com/examples/languageFeatures/int2char2.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 156 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | $input int num; |
| 5 | |
| 6 | void main(){ |
| 7 | char c; |
| 8 | int b = 256; |
| 9 | |
| 10 | c = (char)b; |
| 11 | $assert ( 0 <= (int)c && (int)c < 256); |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
