mckernel/lib/include/*.h mckernel/arch/x86/elfboot/* mckernel/arch/x86/kboot/main.c mckernel/arch/x86/kernel/* mckernel/lib/page_alloc.c mckernel/lib/string.c mckernel/lib/include/ihk/* except mckernel/arch/x86/kernel/include/signal.h mckernel/arch/x86/tools/mcreboot-attached-mic.sh.in mckernel/arch/x86/kernel/include/syscall_list.h mckernel/arch/x86/kernel/syscall.c .
33 lines
938 B
C
33 lines
938 B
C
/**
|
|
* \file string.h
|
|
* License details are found in the file LICENSE.
|
|
* \brief
|
|
* Declare string manipulation functions.
|
|
* \author Taku Shimosawa <shimosawa@is.s.u-tokyo.ac.jp> \par
|
|
* Copyright (C) 2011 - 2012 Taku Shimosawa
|
|
*/
|
|
/*
|
|
* HISTORY
|
|
*/
|
|
|
|
#ifndef __STRING_H
|
|
#define __STRING_H
|
|
|
|
#include <types.h>
|
|
|
|
size_t strlen(const char *p);
|
|
size_t strnlen(const char *p, size_t maxlen);
|
|
char *strcpy(char *dest, const char *src);
|
|
char *strncpy(char *dest, const char *src, size_t maxlen);
|
|
int strcmp(const char *s1, const char *s2);
|
|
int strncmp(const char *s1, const char *s2, size_t n);
|
|
char *strstr(const char *haystack, const char *needle);
|
|
void *memcpy(void *dest, const void *src, size_t n);
|
|
void *memcpy_long(void *dest, const void *src, size_t n);
|
|
int memcmp(const void *s1, const void *s2, size_t n);
|
|
void *memset(void *s, int n, size_t l);
|
|
|
|
unsigned long strtol(const char *cp, char **endp, unsigned int base);
|
|
|
|
#endif
|