.\" Automatically generated by Pandoc 3.5 .\" .TH "al_ustr_assign_substr" "3" "" "Allegro reference manual" .SH NAME al_ustr_assign_substr \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] bool al_ustr_assign_substr(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2, int start_pos, int end_pos) .EE .SH DESCRIPTION Overwrite the string \f[CR]us1\f[R] with the contents of \f[CR]us2\f[R] in the byte interval [\f[CR]start_pos\f[R], \f[CR]end_pos\f[R]). The end points will be clamped to the bounds of \f[CR]us2\f[R]. .PP Usually you will first have to use al_ustr_offset(3) to find the byte offsets. .PP Returns true on success, false on error. .SH SEE ALSO al_ustr_assign(3), al_ustr_assign_cstr(3)