source:
CIVL/examples/languageFeatures/int2char2.cvl@
bb03188
| Last change on this file since bb03188 was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 156 bytes | |
| Rev | Line | |
|---|---|---|
| [9803bc1] | 1 | #include <civlc.cvh> |
| [c6291e9] | 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; | |
| [1a2d69f] | 11 | $assert ( 0 <= (int)c && (int)c < 256); |
| [c6291e9] | 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
