filename parameter
This commit is contained in:
parent
ee59fad3a2
commit
e7b86346e8
|
@ -486,9 +486,9 @@ static void writeFooter() {
|
|||
writeTimingMarker();
|
||||
}
|
||||
|
||||
void writeFile(CompositeEvent *events, int count) {
|
||||
void writeFile(const char * fileName, CompositeEvent *events, int count) {
|
||||
|
||||
ptr = fopen("test.logicdata", "wb");
|
||||
ptr = fopen(fileName, "wb");
|
||||
|
||||
writeHeader();
|
||||
writeEvents(events, count);
|
||||
|
|
|
@ -17,4 +17,4 @@ struct CompositeEvent {
|
|||
bool injector;
|
||||
};
|
||||
|
||||
void writeFile(CompositeEvent *events, int count);
|
||||
void writeFile(const char * fileName, CompositeEvent *events, int count);
|
||||
|
|
|
@ -27,7 +27,7 @@ void runLogicdataSandbox() {
|
|||
setEvent(events, index++, 1000030, false, false, false, false, true, false);
|
||||
setEvent(events, index++, 2000030, false, false, true, false, false, true);
|
||||
|
||||
writeFile(events, index);
|
||||
writeFile("test.logicdata", events, index);
|
||||
|
||||
printf("Done!\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue