エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Big Sky :: C言語から golang の chan っぽい事が出来るライブラリ「chan」
名前そのままやん感がすごいですが。 tylertreat/chan - GitHub https://github.com/tylertreat/chan go... 名前そのままやん感がすごいですが。 tylertreat/chan - GitHub https://github.com/tylertreat/chan golang の chan をC言語から使える様にするライブラリです。やはりC言語というだけあって、受け渡す値の型は void* ですがそこは目をつむりましょう。 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "./src/chan.h" #ifndef _WIN32 #include <unistd.h> #include <termios.h> char getch() { char c = 0; struct termios old = {0}; fflush(stdout); if (tcgetat
2014/09/02 リンク