1 /* { dg-do compile } */
3 typedef struct _IO_FILE
FILE;
4 unsigned long int strtoul(const char *, char **, int);
5 char *fgets(char *, int, FILE *);
8 unsigned char data
[256];
10 static void srec_readrec(struct ihexrec
* srec
, char * rec
)
16 for (i
=0; j
<srec
->reclen
; j
++)
21 buf
[i
] = rec
[offset
++];
22 srec
->data
[j
] = strtoul(buf
, &e
, 16);
25 buf
[i
] = rec
[offset
++];
27 void srec2b(FILE *inf
)
31 while (fgets(buffer
,256,inf
)!=(void *)0)
32 srec_readrec(&srec
, buffer
);