>> Delete No. 11929 article
No. [질문]c 소스입니다..보시고 도와주세요..

등록 2000-11-19 11:32:00 By localhost     조회 2
이름 c 공부하고픈학생    

		#include <stdlib.h>
#include <stdio.h>
 extern char **environ;
 char * ourgetenv(const char *envName)
{
const char *tmp;
size_t length;
 length = strlen(envName);
 /* Loop through the array */
 for( tmp = *environ; '' != *tmp; tmp += strlen(tmp)+1 ) 
{ 
/* Check if this is the right env variable */ 
 if ( !(str
ncmp( tmp, envName, length)) 
&&( '=' == tmp[ length ] )) 
{ 
return ( (char *) &( tmp[ length +1 ]) ); 
} 
} 
 return (
 (char *) 0 ); 
} 
 char *en랑...char **en랑 차이점은...뭐죠..? 
char *cursor=(char *)0;은 뭘 의미하나는 
것죠?? 
특히 (char *)0은 뭐 의미하나요.. 
 한 구문마다..설명좀 부탁할꼐요...c 를 공부하려
는 학생인데..독학할려니깐..어렵네요... 
부탁합니다..고수님들...
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved