| 119 | } |
| 120 | |
| 121 | inline bool WRITE_FILE_ENTRY(FILE *fp, tHogFileEntry *entry) { |
| 122 | int res = 0; |
| 123 | res = fwrite(entry->name, strlen(entry->name), 1, fp); |
| 124 | res = fwrite(&entry->flags, sizeof(entry->flags), 1, fp); |
| 125 | res = fwrite(&entry->len, sizeof(entry->len), 1, fp); |
| 126 | res = fwrite(&entry->timestamp, sizeof(entry->timestamp), 1, fp); |
| 127 | |
| 128 | if (res) |
| 129 | return true; |
| 130 | else |
| 131 | return false; |
| 132 | } |
| 133 | |
| 134 | //////////////////////////////////////////////////////////////////////// |
| 135 | // create new hog file |
no outgoing calls
no test coverage detected