📄 free.c
字号:
#include "mail.h"/* Free up a mail structure, and all the malloc'ed buffers it * may point to. Also close the file descriptors if still open. */int_mail_free(MAIL *mail){ if (mail->idxfd >= 0 && close(mail->idxfd) < 0) err_dump("index close error"); if (mail->datfd >= 0 && close(mail->datfd) < 0) err_dump("data close error"); mail->idxfd = mail->datfd = -1; if (mail->idxbuf != NULL) free(mail->idxbuf); if (mail->datbuf != NULL) free(mail->datbuf); if (mail->name != NULL) free(mail->name); free(mail); return(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -