cmake_minimum_required ( VERSION 3.20 ) project ( testprj ) set ( PRJ_COMPILE_FEATURES ) set ( PRJ_LIBRARIES ) list ( APPEND PRJ_COMPILE_FEATURES cxx_std_20 ) add_executable ( ${PROJECT_NAME} main.cpp ) target_link_libraries( ${PROJECT_NAME} PRIVATE ${PRJ_LIBRARIES} ) target_compile...
// crt_aligned_malloc.c #include <malloc.h> #include <stdio.h> int main() { void *ptr; size_t alignment, off_set; // Note alignment should be 2^N where N is any positive int. alignment = 16; off_set = 5; // Using _aligned_malloc ptr = _aligned_malloc(100, alignment); if...
C runtime library (CRT) reference CRT library features Universal C runtime routines by category Global variables and standard types Global constants Generic-text mappings Locale names, languages, and country-region strings Function family overviews Obsolete functions CRT alphabetical function reference CRT...