Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


(no commit message)
[palacios.git] / palacios / include / libc / string.h
1 /*
2  * String library
3  * Copyright (c) 2001,2004 David H. Hovemeyer <daveho@cs.umd.edu>
4  * $Revision: 1.1.1.1 $
5  * 
6  * This is free software.  You are permitted to use,
7  * redistribute, and modify it as specified in the file "COPYING".
8  */
9
10 #ifndef STRING_H
11 #define STRING_H
12
13 #include <stddef.h>
14
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);
31
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)));
36
37 #endif  /* STRING_H */