switch(pid) { case -1: /*エラー*/ exit(1); break; case 0: message = "This is the Child"; n = 5; break; default: message = "This is the Parent"; n = 3; break; }
>>287 ご参考まで http://www.minq.se/products/pureload/doc/html/gettingstarted/gettingstarted8.html >To increase number of file descriptors allowed per >process (256 is default in Solaris 8). Use the ulimit >or limit command in the shell you are using to start >manager and tasks space server. To be able to increase >number of file descriptors to more than 1024, you must >modify the /etc/system file: > ># set hard limit on file descriptors >set rlim_fd_max = 4096 ># set soft limit on file descriptors >set rlim_fd_cur = 1024 > >These settings will increase the default to 1024 with a max >limit of 4096. > >Note: The system must be rebooted to initiate changes in /etc/system.
291 名前: デフォルトの名無しさん 投稿日: 02/03/22 11:37
大した事じゃなんですが質問します。
よく、DWORDからWORDに落とす時など
WDORD dwBefore = 0x12345678 WORD wAfter = (WORD)dwBefore & 0xffff;
んで、 DrawLine(int x1, int y1, int x2, int y2, const PIXEL pixel); って関数があるもんで、黒とか白とかは定義済みのやつを渡したいなあと。 そして、それはライブラリのコードの中に封じ込めたいんで、宣言後初期化するとなると、 初期化関数でもよばせるしかない。それはちょっとかっこわるいんで、できれば宣言と同時に初期化したいのです。
>>564 ありがとうございます。 #include<stdio.h> size_t st; int main(){} とすればコンパイルは通るのですが、 stdio.hの行をコメントアウトするととたんにコンパイルが 通らなくなります。そのときのエラーメッセージはこうです。 test.c:2: parse error before `t' test.c:2: warning: data definition has no type or storage class
int convert_some_data(struct MyStruct* result, struct MyStruct* source, int condition); int convert_some_data(struct MyStruct*, struct MyStruct*, int);
┃┃┃┃ ┃ ┃ /ヨ⌒彡 ┃ ┃ r/ヲ 冫、 ) /\ヽ_`__0′ ━ ┃ ノ;;;:::::::::/ ┃ ∧∧∧∧∧∧∧∧∧∧ /;;;;;;::|::::/| ━━┛ < おれは > . 〈;;;::::::|:::〈 l ィ'^'^'"'''z < コテハンをやめるぞ! > ヽ|:::|::::::ヽ. 乂(^ミ、了 < ジョジョー―――ッ! > |、|::::::::: ̄`m|ヰ戸 6) V V V V V V V V V V V | 、lヽ:::::::::::lヨ |Eヲ/|ヨ