summaryrefslogtreecommitdiff
path: root/src/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/include/string.h b/src/include/string.h
index c7902e1f95..1b092a6c2a 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -8,14 +8,11 @@ void *memcpy(void *dest, const void *src, size_t n);
void *memmove(void *dest, const void *src, size_t n);
void *memset(void *s, int c, size_t n);
int memcmp(const void *s1, const void *s2, size_t n);
+#ifndef __ROMCC__
int sprintf(char * buf, const char *fmt, ...);
+#endif
-// yes, linux has fancy ones. We don't care. This stuff gets used
-// hardly at all. And the pain of including those files is just too high.
-
-//extern inline void strcpy(char *dst, char *src) {while (*src) *dst++ = *src++;}
-
-//extern inline int strlen(char *src) { int i = 0; while (*src++) i++; return i;}
+// simple string functions
static inline size_t strnlen(const char *src, size_t max)
{