サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
装丁を味わう
blog.httrack.com
A Simple Macro It began with a simple macro: (approximative code) #define ADD_BYTE(C) do { \ if (offset == capa) { \ if (capa < 16) { \ capa = 16; \ } else { \ capa <<= 1; \ } \ buffer = realloc(buffer, capa); \ assert(buffer != NULL); \ } \ buffer[offset++] = (C); \ } while(0) For the C-illiterates, this simple macro just adds the byte ‘C’ to the dynamically allocated buffer buffer, whose capacit
Say What ? Your GCC build flags. Yes, this is actually an interesting question! I have been building code at the various places where I work for many years, on different architectures, and tweaking the build flags has always been an important task. I mean, you probably are too experimented to just use something like: gcc -c fubar.c -o fubar.o And you probably use -W -Wall, or additional flags, to
このページを最初にブックマークしてみませんか?
『blog.httrack.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く