2

I was trying to do it as in a regular C, with void*, but it didn't work. Is it possible to pass it in NXC? If it is- how to do it?

  • What exactly did you try and what was the error? – Jack Wilsdon May 29 '16 at 16:42
  • Like this: "int foo(void *lv, void *rv){ ... }". I took it from here: dreamincode.net/forums/topic/… , from jjl example. The following errors were shown: "Unknown datatype", "Unexpected character encountered" and "Variable name expected." – elle May 30 '16 at 8:57
  • You may be able to use variant instead of void * (or variant *), although to be honest I've not got any experience with BrixCC/NXC. – Jack Wilsdon May 31 '16 at 15:35
  • Yeah, I tryed the variant but there was no result. Seems, that they jast don't have it in NXC. But thank you anyway. – elle Jun 1 '16 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.