Hi everybody,
I have the need to pass a char array to a inline C code:
It prints a single char(+). It's a long time I don't use C and C++ and I cannot see what I'm missing...
Best regards
Mauro Zanin
I have the need to pass a char array to a inline C code:
B4X:
'B4R code
FindString("DR3=")
public Sub FindString(src() As Byte)
RunNative("findstring", src)
Return
End Sub
//B4R C
#if C
B4R::Object* findstring(B4R::Object* o) {
char *testx= (char *)B4R::Object::toPointer(o);
Serial.println(testx);
}
#end if
It prints a single char(+). It's a long time I don't use C and C++ and I cannot see what I'm missing...
Best regards
Mauro Zanin
Last edited: