0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cテスト

Posted at
test.c
typedef struct
{
    int  cnt;
    long dat[12];
}can_mon_buf;

can_mon_buf mon_jstand[10];

void mon_buf_hold(int pat)
{
    int i;

    /* 初期化 */
    static bool inifinflg = FALSE;
    if (TRUE != inifinflg){
        memset((char*)&mon_jstand, 0x00, sizeof(mon_jstand));
        initfinflg = TRUE;
    }

    i = mon_jstand[pat].cnt;
    if (12 >= i){
        mon_jstand[pat].dat[i] = dat;
    }else{
        mon_jstand[pat].cnt++;
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?