stringprep(3) libidn stringprep(3) NNAAMMEE stringprep - API function SSYYNNOOPPSSIISS ##iinncclluuddee <> iinntt ssttrriinnggpprreepp((cchhaarr ** _i_n,, ssiizzee__tt _m_a_x_l_e_n,, SSttrriinnggpprreepp__pprrooffiillee__ffllaaggss _f_l_a_g_s,, ccoonnsstt SSttrriinnggpprreepp__pprrooffiillee ** _p_r_o_f_i_l_e));; AARRGGUUMMEENNTTSS char * in input/ouput array with string to prepare. size_t maxlen maximum length of input/output array. Stringprep_profile_flags flags a SSttrriinnggpprreepp__pprrooffiillee__ffllaaggss value, or 0. const Stringprep_profile * profile pointer to SSttrriinnggpprreepp__pprrooffiillee to use. DDEESSCCRRIIPPTTIIOONN Prepare the input zero terminated UTF-8 string according to the string- prep profile, and write back the result to the input string. Note that you must convert strings entered in the systems locale into UTF-8 before using this function, see ssttrriinnggpprreepp__llooccaallee__ttoo__uuttff88(()). Since the stringprep operation can expand the string, _m_a_x_l_e_n indicate how large the buffer holding the string is. This function will not read or write to characters outside that size. The _f_l_a_g_s are one of SSttrriinnggpprreepp__pprrooffiillee__ffllaaggss values, or 0. The _p_r_o_f_i_l_e contain the SSttrriinnggpprreepp__pprrooffiillee instructions to perform. Your application can define new profiles, possibly re-using the generic stringprep tables that always will be part of the library, or use one of the currently supported profiles. Return value: Returns SSTTRRIINNGGPPRREEPP__OOKK iff successful, or an error code. RREEPPOORRTTIINNGG BBUUGGSS Report bugs to . General guidelines for reporting bugs: http://www.gnu.org/gethelp/ GNU Libidn home page: http://www.gnu.org/software/libidn/ CCOOPPYYRRIIGGHHTT Copyright (C) 2002-2021 Simon Josefsson. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. SSEEEE AALLSSOO The full documentation for lliibbiiddnn is maintained as a Texinfo manual. If the iinnffoo and lliibbiiddnn programs are properly installed at your site, the command iinnffoo lliibbiiddnn should give you access to the complete manual. As an alternative you may obtain the manual from: hhttttpp::////wwwwww..ggnnuu..oorrgg//ssooffttwwaarree//lliibbiiddnn//mmaannuuaall// libidn 1.38 stringprep(3)