Can this source code be included (and compiled) in with my BMax project somehow
I would think so. Pass in a C string, get back an Int (bool) result. You'll need to #include whatever it needs, and it should work fine.
Rememember to free the C string when you are done with it ( MemFree() )