« Home » « Learn » « Download » « Github »

logo

Cello High Level C

Methods

c_str

char* c_str(var self);

Returns the object self represented as a char*.

Examples

Usage

puts(c_str($S("Hello"))); /* Hello */
puts(c_str($S("There"))); /* There */

C_Str


Interpret as C String

The C_Str class should be overridden by types which are representable as a C style String.

Definition

struct C_Str {
  char* (*c_str)(var);
};

Implementers

  • String |     String Object
  • Type |     Metadata Object

Back