|
PAPI
5.0.1.0
|

Go to the source code of this file.
Defines | |
| #define | MAX_LABELS 101 |
Functions | |
| int | main (int argc, char **argv) |
Variables | |
| char | labels [101][100] |
| #define MAX_LABELS 101 |
Definition at line 6 of file fake_mx_counters.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 112 of file fake_mx_counters.c.
{
int i,multiplier=1;
FILE *fff;
fff=fopen("state","r");
if (fff!=NULL) {
fscanf(fff,"%d",&multiplier);
fclose(fff);
}
fff=fopen("state","w");
if (fff!=NULL) {
fprintf(fff,"%d\n",multiplier+1);
fclose(fff);
}
printf("1 ports\n");
for(i=0;i<MAX_LABELS;i++) {
printf("%s:%12d (0x%x)\n",labels[i],i*multiplier,i*multiplier);
}
return 0;
}
| char labels[101][100] |
Definition at line 8 of file fake_mx_counters.c.