ref: 83b2bd4a1c90233331fe35203e555f738b192704
parent: 0ec2b19cef969fbe92ea5450c6832659eea3dc3a
author: mkf <mkf@cloud9p.org>
date: Tue Nov 28 02:31:51 EST 2023
include/libc.h: add new functions
--- a/include/libc.h
+++ b/include/libc.h
@@ -11,6 +11,7 @@
int strccnt(char *s, char c);
long strtol(char *nptr, char **endptr, int base);
char* strncpy(char *dst, const char *src, size_t num);
+char* strncat(char *s1, char *s2, long n);
void* memset(void* src, char c, unsigned int len);
void* memcpy(void *a1, void *a2, unsigned int len);
@@ -17,6 +18,8 @@
int lladd(ll_t*, void*);
int lldel(ll_t*);
+int lllen(ll_t *head);
+void llfree(ll_t *head);
int printf(const char* restrict format, ...);
int scanf (char * str, ...);