/* ============================================================================ * Author : Vadim Mutilin * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ============================================================================ */ #include "header.h" //store in the array example struct A17 { int data; }; int alloc_17(struct A17 **array, int len) { struct A17 *p; int i=0; int j; for(; i=0; j--) { free(array[j]); array[j]=0; } return -ENOMEM; } void entry_point(void) { int i; int len = 10; struct A17 **array = (struct A17 **)ldv_malloc(sizeof(struct A17*)*len); if(array) { for(i=0; i