source:
CIVL/examples/pthread/errorTest/seqTest.cvl@
d01ddb3
| Last change on this file since d01ddb3 was e3151da, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Rev | Line | |
|---|---|---|
| [b0d03b7] | 1 | #include <seq.cvh> |
| 2 | #include <stdio.h> | |
| 3 | ||
| 4 | int main(){ | |
| 5 | int a[]; | |
| 6 | int b = 4, c = 5; | |
| 7 | $seq_init(&a, 1, &b); | |
| 8 | printf("%d", a[0]); | |
| 9 | $seq_insert(&a, 1, &c, 1); | |
| 10 | printf("%d", a[1]); | |
| 11 | return 0; | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
