malloc周辺を中心としたリファクタリング
[YACASL2.git] / include / cerr.h
index 7265b0e..e6e8ddf 100644 (file)
 /* エラーを出力して終了 */
 void *malloc_chk(size_t size, char *tag);
 
+/* malloc_chkを実行してメモリを確保してから、 */
+/* コピーした文字列を返す */
+char *strdup_chk(const char *s, char *tag);
+
 /* エラーの構造体 */
 typedef struct {
     int num;        /* エラー番号 */