본문 바로가기
728x90

Research/Programming25

$(warning TEXT...) $(warning TEXT...) This function works similarly to the error function, above, except that make doesn’t exit. Instead, TEXT is expanded and the resulting message is displayed, but processing of the makefile continues. The result of the expansion of this function is the empty string. 2006. 1. 9.
$(filter PATTERN...,TEXT) $(filter PATTERN...,TEXT) Returns all whitespace-separated words in TEXT that *do* match any of the PATTERN words, removing any words that *do not* match. The patterns are written using %, just like the patterns used in the patsubst function above. The filter function can be used to separate out different types of strings (such as file names) in a variable. For example: sources := foo.c bar.c ba.. 2006. 1. 9.
외부 프로그램을 실행시키고 출력결과를 가져오려면 ? http://www.joinc.co.kr/modules/moniwiki/wiki.php/FAQ?action=recall&rev=1.27#toc 1.4 외부 프로그램을 실행시키고 출력결과를 가져오려면 ? # 제가 만든 프로그램에서 'ls'등을 실행시키고 화면에 출력되는 값들을 받아 오려면 어떻게 해야 하는지 궁금합니다. 이 값들을 읽어들이고 분석해서 어떤 일을 하는 프로그램을 짜고 싶습니다. fork()시킨후에 execl를 이용해서 외부 명령어를 실행시키고 이것을 pipe로 연결하는 방법이 있습니다. 그러나 이것은 복잡한 방법이고 간단하게 popen()을 사용하면 됩니다. #include int main() { FILE *fp = NULL; char buff[256]; if ((fp = popen("ls .. 2005. 8. 23.
Learn a new trick with the offsetof() macro http://www.embedded.com/shared/printableArticle.jhtml?articleID=18312031 Learn a new trick with the offsetof() macro By Nigel Jones, Courtesy of Embedded Systems Programming 3?11 2004 (15:00 $? URL: http://www.embedded.com/showArticle.jhtml?articleID=18312031 Click here for reader response to this article Almost never used, the offsetof() macro can actually be a helpful addition to your bag of t.. 2004. 12. 31.
728x90