Skip to content

No width if length of (data->str) is less that info->width #1

@42lan

Description

@42lan

' ' need to be written only if length of data->str is less that info->width

so condition need to be added before while()
if (info->width > (int)ft_strlen(data->str))
https://github.com/4slan/ft_printf/blob/8163f1e1ea968b9c4674ad737fb72afa0fe6cfa0/sources/types/type_s.c#L30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions