Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/alloc.c

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