Helllo , I'm working on a patch for malloc_get_usable size right now so far i have this test case for malloc, I just make sure that the value is null and i just malloc an int and then i make a call to the function malloc_usable size and then i compare it like this.
static void test_malloc_usablesize( void ){ int * a = malloc(sizeof(int)); rtems_test_assert((int) malloc_usable_size(a) == 12); free (a); int * b = NULL; rtems_test_assert( 0 == malloc_usable_size(b)); free(b); } Is there a good amount of storage to allocate? Also I heard someone made a formatter for rtems source files. Can someone tell me how to use it and if it is on the main branch? _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel