質問編集履歴

3

タイトルの改善

2017/01/25 10:14

投稿

NEWBIEEBIEE
NEWBIEEBIEE

スコア62

test CHANGED
@@ -1 +1 @@
1
- 2バイト以上のデータをread関数(linux)で2バイト確実に読む方法
1
+ 2バイトのデータをread関数(linux)で2バイト確実に読む方法
test CHANGED
File without changes

2

誤字

2017/01/25 10:14

投稿

NEWBIEEBIEE
NEWBIEEBIEE

スコア62

test CHANGED
File without changes
test CHANGED
@@ -8,4 +8,4 @@
8
8
 
9
9
  だと2バイト読めず1バイトだけを読んで関数が終了することがあると思います。
10
10
 
11
- termiousなどの設定を買えず、ある変数に確実に2バイトを読みだす方法はございませんでしょうか。よろしくお願いします。
11
+ termiousなどの設定を変更せず、ある変数に確実に2バイトを読みだす方法はございませんでしょうか。よろしくお願いします。

1

書式改善

2017/01/25 10:14

投稿

NEWBIEEBIEE
NEWBIEEBIEE

スコア62

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- linuxのread関数(https://linuxjm.osdn.jp/html/LDP_man-pages/man2/read.2.html)ですが、uint8_t読み込む際には普通に
1
+ linuxのread関数(https://linuxjm.osdn.jp/html/LDP_man-pages/man2/read.2.html)ですが、uint8_t読み込む際には普通に
2
2
 
3
3
  read(fd, [uint8_t変数のアドレス],sizeof([uint8_t変数]));で何ら支障がないと思います。
4
4