'2009/01'에 해당되는 글 1건

  1. 2009/01/15 간단한 가변인자 샘플코드
분류없음2009/01/15 22:09
#include <stdarg.h>

static inline void error_exit(const char* fmt, const char* msg, ...)
{
    va_list args;
    va_start(args, msg);
    vfprintf(stderr, fmt, args);
    va_end(args);

    exit(1);
}

이올린에 북마크하기(0) 이올린에 추천하기(0)
Posted by 강지훈