00001 /***************************************************************************************** 00002 Copyright (c) 2002-2004 The UbixOS Project 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without modification, are 00006 permitted provided that the following conditions are met: 00007 00008 Redistributions of source code must retain the above copyright notice, this list of 00009 conditions, the following disclaimer and the list of authors. Redistributions in binary 00010 form must reproduce the above copyright notice, this list of conditions, the following 00011 disclaimer and the list of authors in the documentation and/or other materials provided 00012 with the distribution. Neither the name of the UbixOS Project nor the names of its 00013 contributors may be used to endorse or promote products derived from this software 00014 without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 00017 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00018 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00019 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00020 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00021 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00022 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00023 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00024 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00025 00026 $Id$ 00027 00028 *****************************************************************************************/ 00029 00030 #ifndef _STRING_H 00031 #define _STRING_H 00032 00033 #include <ubixos/types.h> 00034 00035 void * memcpy(void * dst, const void * src, size_t length); 00036 void *memset(void * dst, int c, size_t length); 00037 int strlen(const char * string); 00038 int strcmp(const char *,const char *); 00039 00040 int sprintf(char * str, const char * format, ...); 00041 00042 long strtol(const char * __restrict nptr, char ** __restrict endptr, int base); 00043 00044 #endif 00045 00046 /*** 00047 $Log$ 00048 Revision 1.1.1.1 2006/06/01 12:46:13 reddawg 00049 ubix2 00050 00051 Revision 1.2 2005/10/12 00:13:36 reddawg 00052 Removed 00053 00054 Revision 1.1.1.1 2005/09/26 17:23:38 reddawg 00055 no message 00056 00057 Revision 1.5 2004/07/21 10:02:09 reddawg 00058 devfs: renamed functions 00059 device system: renamed functions 00060 fdc: fixed a few potential bugs and cleaned up some unused variables 00061 strol: fixed definition 00062 endtask: made it print out freepage debug info 00063 kmalloc: fixed a huge memory leak we had some unhandled descriptor insertion so some descriptors were lost 00064 ld: fixed a pointer conversion 00065 file: cleaned up a few unused variables 00066 sched: broke task deletion 00067 kprintf: fixed ogPrintf definition 00068 00069 Revision 1.4 2004/07/05 23:06:32 reddawg 00070 Fixens 00071 00072 Revision 1.3 2004/06/04 13:29:56 reddawg 00073 libc: modified mkdir(); interface 00074 kpanic: kPanic(); now says kPanic: %s 00075 system: now reboots when receives message for reboot 00076 also when command start sde is received by system the STD is started 00077 00078 Revision 1.2 2004/05/21 15:22:35 reddawg 00079 Cleaned up 00080 00081 00082 END 00083 ***/