Home / api / name / gb_string 
GB_STRING
Syntax
typedef
  struct {
    GB_TYPE type;
    struct {
      char *addr;
      long start;
      long len;
      } value;
    }
  GB_STRING;

This structure represents a String Gambas value.

The string is not always terminated by a zero character. You must use the STRING and LENGTH macro to access a method string argument. If you need a null-terminated string, you can use the GB.ToZeroString function.


See also
Gambas Value Datatype  STRING  LENGTH  GB.ToZeroString