Skip to content

Instantly share code, notes, and snippets.

@sonOfRa
Created September 4, 2013 13:03
Show Gist options
  • Save sonOfRa/6436636 to your computer and use it in GitHub Desktop.
Save sonOfRa/6436636 to your computer and use it in GitHub Desktop.
/* Get name of friendnumber and put it in name.
* name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH (128) bytes.
*
* return 0 if success.
* return -1 if failure.
*/
int tox_getname(Tox *tox, int friendnumber, uint8_t *name);
VS
/*
* Get your nickname.
* m - The messanger context to use.
* name - Pointer to a string for the name.
* nlen - The length of the string buffer.
*
* return length of name.
* return 0 on error.
*/
uint16_t tox_getselfname(Tox *tox, uint8_t *name, uint16_t nlen);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment