Changeset 1db4e2ae in mainline for common/include/str.h


Ignore:
Timestamp:
2025-04-17T15:10:08Z (5 days ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
a65ccc4, af77459, c4cfe4c
Parents:
45adeeb
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-14 18:44:41)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-17 15:10:08)
Message:

Have str_sanitize also remove C0 and C1 control codes

and use it to sanitize KIO output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/include/str.h

    r45adeeb r1db4e2ae  
    149149extern char *str_tok(char *, const char *, char **);
    150150
     151extern size_t str_sanitize(char *, size_t, uint8_t);
     152
    151153extern errno_t str_uint8_t(const char *, const char **, unsigned int, bool,
    152154    uint8_t *);
     
    165167extern void bin_order_suffix(const uint64_t, uint64_t *, const char **, bool);
    166168
    167 extern size_t str_sanitize(char *str, size_t n, uint8_t replacement);
    168 
    169169/*
    170170 * TODO: Get rid of this.
Note: See TracChangeset for help on using the changeset viewer.