FreeCalypso > hg > freecalypso-sw
comparison loadtools/srecreader.c @ 7:aa1f6fe16fef
loadtools building blocks started
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 30 Apr 2013 07:19:48 +0000 |
parents | |
children | acaac9162574 |
comparison
equal
deleted
inserted
replaced
6:5eaafa83be60 | 7:aa1f6fe16fef |
---|---|
1 /* | |
2 * This module contains the functions for reading S-record files. | |
3 */ | |
4 | |
5 #include <sys/types.h> | |
6 #include <stdio.h> | |
7 #include <ctype.h> | |
8 #include <strings.h> | |
9 #include "srecreader.h" | |
10 | |
11 open_srec_file(sr) | |
12 struct srecreader *sr; | |
13 { | |
14 sr->openfile = fopen(sr->filename, "r"); | |
15 if (!sr->openfile) { | |
16 perror(sr->filename); | |
17 return(-1); | |
18 } | |
19 sr->lineno = 0; | |
20 return(0); | |
21 } | |
22 | |
23 read_s_record(sr) | |
24 struct srecreader *sr; | |
25 { | |
26 | |
27 | |
28 } |