Comment by yipikaya
As an aside, it's amusing that it took 25 years for C coders to embrace the C99 named struct designator feature:
HttpParser parser = {
.isValid = true,
.requestBuffer = strdup(request),
.requestLength = strlen(request),
.position = 0,
};
All the kids are doing it now!
It's only Microsoft's fault to have not implemented it for decades in MSVC. They stayed at C89 forever.