update example for change in function signature
This commit is contained in:
parent
ecc3fff8a0
commit
ac85394396
|
@ -26,5 +26,5 @@ clean:
|
||||||
@echo "Cleaning..."
|
@echo "Cleaning..."
|
||||||
rm -f $(OBJECTS) $(OUT) *.bin gnuplotscript.gp
|
rm -f $(OBJECTS) $(OUT) *.bin gnuplotscript.gp
|
||||||
|
|
||||||
.cpp.o:
|
.c.o:
|
||||||
$(COMPILE) -c $< -o $@
|
$(COMPILE) -c $< -o $@
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
#include "b15f/wrapper/b15f.h"
|
#include "b15f/wrapper/b15f.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
b15f_t* instance = get_instance();
|
char buf[512];
|
||||||
|
b15f_t* instance = get_instance(buf, sizeof(buf));
|
||||||
|
|
||||||
|
if (instance == NULL) {
|
||||||
|
fprintf(stderr, "%s", buf);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in a new issue