Adds one Name area
Syntax
#include "niffapi.h"
int niAddName(Nis *nis);
Arguments
Return value
Returns the number of Name areas. Index starts from 0, so the index of a newly secured area is the returned value - 1.
Description
Creates the Name area data and adds it to NameList.
Notes
Three blank+NULL characters are set in node_name. A 4 byte region, which is the minimum length for node_name, is secured. Blank characters are invalid, so be sure to set the name using niSetName() after using this function.
See Also
niSetName
For the Nis structure, refer to n64kit/niff/niffapi/nis.h.