/* Collection of code snippets by Arne Vajhøj */
/* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) */
#include <stdio.h>

#include "acc.h"

int main()
{
    accptr *ap;
    int i;
    acc_create(&ap);
    for(i = 0; i < 3; i++)
    {
        acc_inc(ap);
    }
    printf("%d\n", acc_get(ap));
    acc_free(ap);
    return 0;
}
