3 ms·
I'd do this in almost any other language than C :) In C, I like just passing a const char * around as input; this also gives me ability to return progress and
by codr7 1y ago
I'd do this in almost any other language than C :)
In C, I like just passing a const char * around as input; this also gives me ability to return progress and unget chars as an added bonus.
https://github.com/codr7/shi-c/blob/b1d5cb718b7eb166a0a93c775689e03e723f74ef/src/shi/read.c#L53 https://github.com/codr7/shi-c/blob/b1d5cb718b7eb166a0a93c77...