Skip to content

Provide option to use string arguments that are not null-terminated #934

@BSven

Description

@BSven

I would highly appreciate to have the option to use explicit length specifications for string parameters in all API functions.

Example for open():
I would be great to not only have:
int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags);
... where path is assumed to be null-terminated, but also:
int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, lfs_size_t path_length, int flags);
... where the length of path is specified explicitely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions