If so, something like this should do the trick :

```
#DEFINE SIZE 100
int *transform_array(int *array, size_t size) {
int i = 0;
int *temp = (int*) malloc(SIZE * sizeof(int));
for (i = 0; i < size; ++i) {
temp[i] = array[i];
}
for (; i < SIZE; ++i) {
temp[i] = 0;
}
return temp;
}
int main(void) {
int v[6] = { 1, 1, 2, 1, 1, 2 };
int i = 0;
int *aux = transform_array(v, 6);
for (i = 0; i < SIZE; ++i) {
printf("%d\n", aux[i]);
}
return 0;
}
```