enum {
ERR_XXX = -1
...
}
while(idx > ERR_XXX) {
// 繰返し処理
}
idx = -1; // エラー時
エラー時の代入にERR_XXXを使うのが正しい実装だろう。
enum {
ERR_XXX = -1
...
}
while(idx > ERR_XXX) {
// 繰返し処理
}
idx = -1; // エラー時
エラー時の代入にERR_XXXを使うのが正しい実装だろう。
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.