niAddName
Adds one Name area
Syntax
#include "niffapi.h"
int niAddName(Nis *nis);
Arguments
nis
Pointer to the Nis structure
Returned value
Returns the number of Name areas. Index starts from 0, so the index of a newly secured area is the returned value - 1.
Explanation
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 see n64kit/niff/niffapi/nis.h
Back to NIFFAPI Index
Copyright 1998-1999 NINTENDO Co., Ltd.
1998-1999 MONEGI CORPORATION All rights reserved.