Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/alloc.c

    r6ea0408 rb9c04946  
    1010// Created On       : Wed Feb  3 07:56:22 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Feb 16 15:42:31 2018
    13 // Update Count     : 330
     12// Last Modified On : Thu Jul 26 20:58:05 2018
     13// Update Count     : 334
    1414//
    1515
     
    5454        p = alloc( fill );                                  // CFA alloc, fill
    5555        printf( "CFA alloc, fill %08x\n", *p );
     56        free( p );
    5657
    5758
     
    218219        printf( "\n" );
    219220
    220         memset( sta, dim, fill );                           // CFA array memset, type safe
     221        amemset( sta, fill, dim );                                                      // CFA array memset, type safe
    221222        printf( "CFA array memset\n" );
    222223        for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta[i].x, sta[i].y ); }
    223224        printf( "\n" );
    224225
    225         memcpy( sta1, sta, dim );                           // CFA array memcpy, type safe
    226         printf( "CFA memcpy\n" );
     226        amemcpy( sta1, sta, dim );                                                      // CFA array memcpy, type safe
     227        printf( "CFA array memcpy\n" );
    227228        for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); }
    228229        printf( "\n" );
Note: See TracChangeset for help on using the changeset viewer.