source:
CIVL/mods/dev.civl.com/examples/pthread/errorTest/seqTest.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Line | |
|---|---|
| 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.
