blob: cac4cfa390107e79b52af849c9c824393e42eb25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdio.h>
#include <stdbool.h>
typedef struct AryInt {
unsigned int len;
unsigned int data[];
} AryInt;
__attribute__ ((CALL_CONV))
extern AryInt *sieve(int N);
int main() {
AryInt* ps = sieve(100);
printf("%d[",ps->len);
for( int i=0; i<ps->len; i++ )
printf("%d, ",ps->data[i]);
printf("]");
return 0;
}
|