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

18 行
342B

  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_realloc_pool(struct smalloc_pool *spool, void *p, size_t n)
  8. {
  9. return sm_realloc_pool_i(spool, p, n, 0);
  10. }
  11. void *sm_realloc(void *p, size_t n)
  12. {
  13. return sm_realloc_pool_i(&smalloc_curr_pool, p, n, 0);
  14. }