X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fcerr.h;h=e6e8ddf06da126002216ad4a024c1cdb6d1e92f2;hb=df686f409d06eaac1e8909cbe453f256d56ae14f;hp=7265b0ed25c476e333e1bcd2a04dcdf0fc6705b3;hpb=4ee27a568fb9222907a566e59aaefe248f08a8e4;p=YACASL2.git diff --git a/include/cerr.h b/include/cerr.h index 7265b0e..e6e8ddf 100644 --- a/include/cerr.h +++ b/include/cerr.h @@ -15,6 +15,10 @@ /* エラーを出力して終了 */ void *malloc_chk(size_t size, char *tag); +/* malloc_chkを実行してメモリを確保してから、 */ +/* コピーした文字列を返す */ +char *strdup_chk(const char *s, char *tag); + /* エラーの構造体 */ typedef struct { int num; /* エラー番号 */