2015/09

    [C언어] Header File 한번만 포함하기.

    C언어로 프로그래밍을 하다보면 하나의 헤더파일이 여러 곳에서 참조될 때가 있다.컴파일 시 해당 헤더파일이 여러번 중복되서 참조되는 상황을 막기 위해 #ifndef 와 #define이 사용된다. 예를 들어 test.h라는 헤더파일이 있다고 하자. 헤더파일의 가장 위에 #ifndef __TEST_H__#define __TEST_H__ // 내용 작성 #endif 위와 같이 작성하게 되면 __TEST_H__이 상수화 되어 헤더파일 참조 시 해당 파일 참조되었으므로 한번만 참조하게 된다.

    Ubuntu 14.04 에서 Samba Server 설정

    1 Preliminary NoteI have fresh installed ubuntu14.04 server, on which I am going to install the samba server. Off-course you need to have one windows machine to check the samba server that must be reachable with the ubuntu server. My ubuntu server have hostname server1.example.com & IP as 192.168.0.100You can have your ubuntu server installed from the starting eleven chapters of this tutorial. N..

});