您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
331B

  1. /*
  2. * This file is a part of SMalloc.
  3. * SMalloc is MIT licensed.
  4. * Copyright (c) 2017 Andrey Rys.
  5. */
  6. #include "smalloc_i.h"
  7. void *sm_calloc_pool(struct smalloc_pool *spool, size_t x, size_t y)
  8. {
  9. return sm_zalloc_pool(spool, x * y);
  10. }
  11. void *sm_calloc(size_t x, size_t y)
  12. {
  13. return sm_calloc_pool(&smalloc_curr_pool, x, y);
  14. }