diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2024-09-24 11:01:01 +0100 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2024-09-24 11:01:01 +0100 |
commit | 905588e11c174e3ac2d6bb235c7ab81532f98691 (patch) | |
tree | b7e083be0e610ccdb8915a95245016d38dd75d56 /comp/lucas-standen-NEA/code2/stdlib/zpylib.c | |
parent | 468fc8ca7d9ea4a0529aa055bad14c02347c748a (diff) |
did some fixes to the compiler around the auto mem free
Diffstat (limited to 'comp/lucas-standen-NEA/code2/stdlib/zpylib.c')
-rw-r--r-- | comp/lucas-standen-NEA/code2/stdlib/zpylib.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/code2/stdlib/zpylib.c b/comp/lucas-standen-NEA/code2/stdlib/zpylib.c index 9932785..86f0dc3 100644 --- a/comp/lucas-standen-NEA/code2/stdlib/zpylib.c +++ b/comp/lucas-standen-NEA/code2/stdlib/zpylib.c @@ -4,6 +4,10 @@ #include "./String/String.h" +void printstr(char *s){ + printf("%s", s); +} + void printchar(char c){ putchar(c); } @@ -16,6 +20,12 @@ void printfloat(double f){ printf("%f", f); } +char *readstr(){ + char *str = calloc(0, 256); + fgets(str, 256, stdin); + return str; +} + char readchar(){ char c; scanf("%c", &c); |