libpurple/util.h

changeset 40747
265694d7b23d
parent 40660
a1d86d4fec2e
child 40870
e3397381fd35
equal deleted inserted replaced
40746:5df699e43f3f 40747:265694d7b23d
732 * seconds. 732 * seconds.
733 */ 733 */
734 char *purple_str_seconds_to_string(guint sec); 734 char *purple_str_seconds_to_string(guint sec);
735 735
736 /** 736 /**
737 * purple_utf16_size:
738 * @str: String to check.
739 *
740 * Calculates UTF-16 string size (in bytes).
741 *
742 * Returns: Number of bytes (including NUL character) that string occupies.
743 */
744 size_t purple_utf16_size(const gunichar2 *str);
745
746 /**
747 * purple_str_wipe: 737 * purple_str_wipe:
748 * @str: A NUL-terminated string to free, or a NULL-pointer. 738 * @str: A NUL-terminated string to free, or a NULL-pointer.
749 * 739 *
750 * Fills a NUL-terminated string with zeros and frees it. 740 * Fills a NUL-terminated string with zeros and frees it.
751 * 741 *
752 * It should be used to free sensitive data, like passwords. 742 * It should be used to free sensitive data, like passwords.
753 */ 743 */
754 void purple_str_wipe(gchar *str); 744 void purple_str_wipe(gchar *str);
755
756 /**
757 * purple_utf16_wipe:
758 * @str: A NUL-terminated string to free, or a NULL-pointer.
759 *
760 * Fills a NUL-terminated UTF-16 string with zeros and frees it.
761 *
762 * It should be used to free sensitive data, like passwords.
763 */
764 void purple_utf16_wipe(gunichar2 *str);
765 745
766 /**************************************************************************/ 746 /**************************************************************************/
767 /* URI/URL Functions */ 747 /* URI/URL Functions */
768 /**************************************************************************/ 748 /**************************************************************************/
769 749

mercurial