mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 19:36:46 +02:00
wrap tox_get_name in function that truncates name if it's too long
This commit is contained in:
@ -85,4 +85,8 @@ void get_file_name(char *namebuf, const char *pathname);
|
||||
/* converts str to all lowercase */
|
||||
void str_to_lower(char *str);
|
||||
|
||||
/* puts friendnum's nick in buf, truncating at TOXIC_MAX_NAME_LENGTH if necessary.
|
||||
Returns nick len on success, -1 on failure */
|
||||
int get_nick_truncate(Tox *m, char *buf, int friendnum);
|
||||
|
||||
#endif /* #define _misc_tools_h */
|
||||
|
Reference in New Issue
Block a user