Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Notes / Warnings

None.

Example Usage

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          void        *pmem_blk;
          CPU_SIZE_T   octets_reqd;
          LIB_ERR      err;
           
          pmem_blk = Mem_HeapAlloc((CPU_SIZE_T) 100u,
                                   (CPU_SIZE_T)   4u,
                                   (CPU_SIZE_T)&octets_reqd,
                                   (LIB_ERR  *)&err);
           
          if (err != LIB_ERR_NONE) {
              printf("COULD NOT GET MEMORY BLOCK FROM HEAP.");
          }