string.h

00001 /***************************************************************************
00002                           string.h  -  description
00003                              -------------------
00004     begin                : Sat Dec 13 2003
00005     copyright            : (C) 2003 by Dynacube Team
00006     email                : mdshah82@yahoo.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef __STRING_H
00019 #define __STRING_H
00020 
00021         #include "common/ktypes.h"
00022         
00023         #define MAX_BUFFER 0x2000
00024    
00025         DW strlen(const char *);                 //unsigned result
00026         SDB strcmp(const char *,const char *);   // 1 0 -1 KR add stricmp
00027         SDB stricmp(const char *,const char *);
00028         void strcpy(void *dest,const void *src);
00029         void strcat(void *dest,const void *src);
00030 
00031         void* memcpy(void *dest, const void *src, size_t n);
00032         void* kmemcpy(void *dest, const void *src, size_t n);
00033         void* memset(void *dest, DB val, DD times);
00034         void* strmncpy(void* dest,void *src,DD m, DD n);
00035         void* strncpy(void* dest,void *src,DD n);   
00036         unsigned char toupper(unsigned char s);
00037         unsigned char tolower(unsigned char s);
00038         char is_lower(unsigned char s);
00039         char is_upper(unsigned char s);
00040         char isnum(unsigned char c);
00041         unsigned char toggle_shift(unsigned char s);
00042 
00043 #endif

Generated on Thu Jul 27 23:52:27 2006 for Dynacube by  doxygen 1.4.7