source:
CIVL/examples/library/string/memset.cvl@
b32c2d8
| Last change on this file since b32c2d8 was aa482da, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 206 bytes | |
| Line | |
|---|---|
| 1 | #include<string.h> |
| 2 | #include<stdio.h> |
| 3 | |
| 4 | int main(){ |
| 5 | char a[5]; |
| 6 | |
| 7 | memset(a, 0, 3); |
| 8 | printf("%c, %c, %c, %c, %c\n", a[0], a[1],a[2],a[3],a[4]); |
| 9 | //$assert $forall {i= 0 .. 2} a[i]==0; |
| 10 | $assert a[0]==0; |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
