niGetName

Gets the character string of a name

Syntax

#include  "niffapi.h"

char *niGetName(char *name, NisName *nisname);

Arguments

nisname
Pointer to the NisName structure held in the Name area where the name you want is located.

Returned value

Returns the pointer to the character string.

Explanation

  For NIFF data, names are not C character strings. This function secures a region that corresponds to the length of the name and returns a C character string.

Example

Gets the name of obj[1]
char *name;
name = niGetName(name, &nis->namel->nisname[nis->objl->obj[1].obj_name_index]);

Notes

   To avoid problems, the present version replaces blank characters with an underscore ( '_' ).

   Because NIFF does not allow blank characters in names, this function will be deleted in a future version. When creating NIFF data, please do not use blank spaces in names.

See also

niNewNis, niOpenNb, 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.