mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:27:36 +00:00
LibC: Remove the mbstate_reset helper
A zero-initialized mbstate_t struct has to be a valid initial state, so we can just zero-initialize it whenever we need to reset. Having a helper function for resetting the struct might imply that you can add additional setup operations afterwards, which is not the case.
This commit is contained in:
parent
ab46864674
commit
3c807402b3
2 changed files with 7 additions and 11 deletions
|
@ -18,6 +18,7 @@ __BEGIN_DECLS
|
|||
typedef __WINT_TYPE__ wint_t;
|
||||
typedef unsigned long int wctype_t;
|
||||
|
||||
// A zero-initialized mbstate_t struct must be a valid initial state.
|
||||
typedef struct {
|
||||
unsigned char bytes[4];
|
||||
} mbstate_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue