Overview

The Hex Workshop structure view can accommodate three popular types of strings:

- A variable length null (or zero) terminated string (zstring).
- A fixed length string.
- A variable length string where the length precedes the string content.

Example of the three string types are shown below:

struct stringexample

{

  zstring null_terminated_str;

  char fixed_length_str[128];

 

  struct length_first_str

  {

    WORD length;

    char string[length];

  };

};

 

More Information on Structure Definitions

Definition Overview, Data Types, Enumerated Types, Arrays, Strings, Bitfields, Expressions, Conditionals, Functions, Verification, Library Settings, Structure Settings, and Reserved Words and Symbols.