« Home » « Learn » « Download » « Github »
c_str
char* c_str(var self);
Returns the object self represented as a char*.
self
char*
Usage
puts(c_str($S("Hello"))); /* Hello */ puts(c_str($S("There"))); /* There */
Interpret as C String
The C_Str class should be overridden by types which are representable as a C style String.
C_Str
struct C_Str { char* (*c_str)(var); };
Back