| 206 | } |
| 207 | |
| 208 | bool |
| 209 | loadPatternDataFromFile( |
| 210 | HfInfo * file, |
| 211 | char** name, |
| 212 | unsigned int* len, |
| 213 | unsigned int* numExtra) |
| 214 | { |
| 215 | int status = 0; |
| 216 | |
| 217 | status += hfRead(file, len, 1, sizeof(*len)); |
| 218 | *name = malloc((*len)* sizeof(char)); |
| 219 | status += hfRead(file, *name, 1, *len); |
| 220 | status += hfRead(file, numExtra, 1, sizeof(unsigned int)); |
| 221 | status += hfCheckCRC (file); |
| 222 | |
| 223 | return status == FILE_OK; |
| 224 | } |
| 225 | |
| 226 | |
| 227 | int |
no test coverage detected