'apr_pstrcat'에 해당되는 글 1건

  1. 2009/03/24 [아파치 프로그래밍]apr_pstrcat 사용시의 주의할 점

 //  char* apr_pstrcat   (    apr_pool_t *     p, ... )   
 //    Concatenate multiple strings, allocating memory out a pool
//  p  The pool to allocate out of
//  ...  The strings to concatenate. The final string must be NULL
//

 

char *a=NULL;

char *b=NULL;

대충 이렇다고 하고

 

어떤 루틴을 통해 a,b가 어떤 스트링을 가리킨다 고 했을때

해당 루틴에서 대입을 안시키는 경우; 뻑난다... 물론 런타임 에러

char *a="";

char *b="";

 

짱나도 이렇게 바꾸자;;



저작자 표시 비영리 동일 조건 변경 허락
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by dosuser(신대용) dosuser