GetAdminUsername Function

Retrieves an admin's user name as made with CreateAdmin().

int GetAdminUsername(AdminId id, char[] name, int maxlength)

Parameters

AdminId id

AdminId of the admin.

char[] name

String buffer to store name.

int maxlength

Maximum size of string buffer.

Return Value

Number of bytes written.

Notes

This function can return UTF-8 strings, and will safely chop UTF-8 strings.