Next: 4.10.12 nxo Up: 4.10 Classes Previous: 4.10.10 nxm Contents Index
Subsections

- 4.10.11.1 API

##
4.10.11 nxn

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

### 4.10.11.1 API

const char * 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.

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.12 nxo Up: 4.10 Classes Previous: 4.10.10 nxm Contents Index