POK(kernelpart)
libc.h
Go to the documentation of this file.
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Thu Jan 15 23:34:13 2009
15  */
16 
17 
18 #ifndef __POK_KERNEL_LIBC_H__
19 #define __POK_KERNEL_LIBC_H__
20 
21 #include <types.h>
22 
23 void *memcpy(void * to, const void * from, size_t n);
24 
25 /* avoid errors for windows */
26 /*__attribute__ ((weak))*/
27 void *memset(void *dest, unsigned char val, size_t count);
28 int strlen (const char* str);
29 
30 int strcmp (const char *s1, const char *s2);
31 int strncmp(const char *s1, const char *s2, size_t size);
32 
33 
34 #if defined (POK_NEEDS_CONSOLE) || defined (POK_NEEDS_DEBUG) || defined (POK_NEEDS_INSTRUMENTATION) || defined (POK_NEEDS_COVERAGE_INFOS)
35 int printf(const char *format, ...);
36 #endif /* NEEDS_CONSOLE or NEEDS_DEBUG */
37 
38 #endif