Changes in src/tests/alloc.c [6ea0408:b9c04946]
- File:
-
- 1 edited
-
src/tests/alloc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/alloc.c
r6ea0408 rb9c04946 10 10 // Created On : Wed Feb 3 07:56:22 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 16 15:42:31201813 // Update Count : 33 012 // Last Modified On : Thu Jul 26 20:58:05 2018 13 // Update Count : 334 14 14 // 15 15 … … 54 54 p = alloc( fill ); // CFA alloc, fill 55 55 printf( "CFA alloc, fill %08x\n", *p ); 56 free( p ); 56 57 57 58 … … 218 219 printf( "\n" ); 219 220 220 memset( sta, dim, fill );// CFA array memset, type safe221 amemset( sta, fill, dim ); // CFA array memset, type safe 221 222 printf( "CFA array memset\n" ); 222 223 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta[i].x, sta[i].y ); } 223 224 printf( "\n" ); 224 225 225 memcpy( sta1, sta, dim );// CFA array memcpy, type safe226 printf( "CFA memcpy\n" );226 amemcpy( sta1, sta, dim ); // CFA array memcpy, type safe 227 printf( "CFA array memcpy\n" ); 227 228 for ( int i = 0; i < dim; i += 1 ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); } 228 229 printf( "\n" );
Note:
See TracChangeset
for help on using the changeset viewer.