Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バイト配列(dB)があります。バイトを1つずつ抽出しようとしています。このコードが機能しないのはなぜですか?ポインタはありますか?論理的に私は間違っていますか?または私の実装に何か問題がありますか?
次のように宣言されたバイトバッファーがあります。
unsigned char *decodeBuf;
そのバッファから単一の値を読み取るには、オフセットで次のiように記述します。
i
unsigned char b = decodeBuf[i];
試す
int main() { unsigned char tmp; tmp = getByte(dB+dOffset); dOffset++; }
それは動作するはずです