3 * Copyright (c) 2001,2004 David H. Hovemeyer <daveho@cs.umd.edu>
6 * This is free software. You are permitted to use,
7 * redistribute, and modify it as specified in the file "COPYING".
15 void* memset(void* s, int c, size_t n);
16 void* memcpy(void *dst, const void* src, size_t n);
17 void *memmove(void *dst, const void *src, size_t n);
18 int memcmp(const void *s1, const void *s2, size_t n);
19 size_t strlen(const char* s);
20 size_t strnlen(const char *s, size_t maxlen);
21 int strcmp(const char* s1, const char* s2);
22 int strncmp(const char* s1, const char* s2, size_t limit);
23 char *strcat(char *s1, const char *s2);
24 char *strcpy(char *dest, const char *src);
25 char *strncpy(char *dest, const char *src, size_t limit);
26 char *strdup(const char *s1);
27 int atoi(const char *buf);
28 char *strchr(const char *s, int c);
29 char *strrchr(const char *s, int c);
30 char *strpbrk(const char *s, const char *accept);
32 /* Note: The ISO C standard puts this in <stdio.h>, but we don't
33 * have that header in GeekOS (yet). */
34 int snprintf(char *s, size_t size, const char *fmt, ...)
35 __attribute__ ((__format__ (__printf__, 3, 4)));