Next: 4.10.11 nxo Up: 4.10 Classes Previous: 4.10.9 nxa Contents Index
Subsections

- 4.10.10.1 API

##
4.10.10 nxn

The nxn class provides access to a table of string constants. The main reason for this class's existence is that multiple C files often use identical string constants, and this saves memory by allowing all to refer to a single string.

### 4.10.10.1 API

const cw_uint8_t * nxn_str(cw_nxn_t a_nxn):

  Input(s):
    a_nxn:
      A number that corresponds to an entry in the string table.
  Output(s):
    retval:
      Pointer to a string constant.
  Exception(s):
    None.
  Description:
    Return a pointer to the string constant associated with a_nxn.

cw_uint32_t nxn_len(cw_nxn_t a_nxn):

  Input(s):
    a_nxn:
      A number that corresponds to an entry in the string table.
  Output(s):
    retval:
      String length of a string constant.
  Exception(s):
    None.
  Description:
    Return the string length of the string constant associated with a_nxn.

Next: 4.10.11 nxo Up: 4.10 Classes Previous: 4.10.9 nxa Contents Index