084be3a8

макросы для динамического


А вот пример использования макросов stack_alloc и stack_free:

foo()

{

       char* p; int n;

       int total = 0;

      

       n = 0x100;

       stack_alloc(p, n, total);

      

       strcpy(p,"hello, world!\n");
printf(p);

      

       stack_free(total);

}



Содержание раздела