Skip to content

cf_string_lpad

Category: string
GitHub: cute_string.h


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

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

Remarks

Shortform: slpad(s, ch, n).

cf_string_rpad
cf_string_trim