1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 12: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:
Tim Schumacher 2021-09-19 12:48:04 +02:00 committed by Brian Gianforcaro
parent ab46864674
commit 3c807402b3
2 changed files with 7 additions and 11 deletions

View file

@ -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;