Skip to content

cf_string_rpad

Category: string
GitHub: cute_string.h


Right-pads the string to at least n characters using ch.

#define cf_string_rpad(s, ch, n) srpad(s, ch, n)
Parameters Description
s The string. Modified in-place.
ch The padding character.
n The minimum total length after padding.

Remarks

Shortform: srpad(s, ch, n).

cf_string_lpad
cf_string_trim