.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "al_ustr_prev" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_ustr_prev - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_ustr_prev(const ALLEGRO_USTR *us, int *pos) \f[R] .fi .SH DESCRIPTION .PP Find the byte offset of the previous code point in string, before \f[C]*pos\f[R]. \f[C]*pos\f[R] does not have to be at the beginning of a code point. Returns true on success, and the value pointed to by \f[C]pos\f[R] will be updated to the found offset. Otherwise returns false if \f[C]*pos\f[R] was already at the end of the string, and \f[C]*pos\f[R] is unmodified. .PP This function just looks for an appropriate byte; it doesn\[cq]t check if found offset is the beginning of a valid code point. If you are working with possibly invalid UTF-8 strings then it could skip over some invalid bytes. .SH SEE ALSO .PP al_ustr_next(3alleg5)