| [ CnUnix ] in KIDS 글 쓴 이(By): burp (__) 날 짜 (Date): 2002년 3월 29일 금요일 오후 01시 34분 52초 제 목(Title): [Q] 첨보는 함수 형태 OpenLDAP 소스코드를 보니 이상한 함수가 정의되어 있더군요. static void usage LDAP_P(( const char *prog )) LDAP_GCCATTR((noreturn)); 이게 함수 정의 한거 맞나요? fprintf를 아래처럼 사용하는 것도 첨 봅니다. ----------------------------------------------------------------------- static char *prog; static void usage LDAP_P(( const char *prog )) LDAP_GCCATTR((noreturn)); static void usage( const char *prog ) { fprintf( stderr, "Add or modify entries from an LDAP server\n\n" "usage: %s [options]\n" " The list of desired operations are read from stdin or from the file\n" " specified by \"-f file\".\n" " -X authzid SASL authorization identity (\"dn:<dn>\" or \"u:<user>\")\n" " -Y mech SASL mechanism\n" " -Z Start TLS request (-ZZ to require successful response)\n" , prog, (strcmp( prog, "ldapadd" ) ? " is to replace" : "") ); exit( EXIT_FAILURE ); } ----------------------------------------------------------------------- ^^<~>^^ |