http://ufcpp.net/study/algorithm/col_circular.html

この循環バッファをCで実装したいんですが・・・


うまくできません。考え方だけでいいので教えてくださいませんか