Natural Tiny Shell (NT-Shell) library is a tiny shell library for a small embedded system. The interface is really simple. You should only know ntshell_execute in ntshell.h. So you can port it to any embedded system easily. Please enjoy your small embedded system with it. :)
Dependents: NaturalTinyShell_TestProgram
ntlibc.h
00001 /** 00002 * @file ntlibc.h 00003 * @author Shinichiro Nakamura 00004 * @brief NT-Shellで用いる小規模libcの定義。 00005 */ 00006 00007 /* 00008 * =============================================================== 00009 * Natural Tiny Shell (NT-Shell) 00010 * Version 0.0.6 00011 * =============================================================== 00012 * Copyright (c) 2010-2011 Shinichiro Nakamura 00013 * 00014 * Permission is hereby granted, free of charge, to any person 00015 * obtaining a copy of this software and associated documentation 00016 * files (the "Software"), to deal in the Software without 00017 * restriction, including without limitation the rights to use, 00018 * copy, modify, merge, publish, distribute, sublicense, and/or 00019 * sell copies of the Software, and to permit persons to whom the 00020 * Software is furnished to do so, subject to the following 00021 * conditions: 00022 * 00023 * The above copyright notice and this permission notice shall be 00024 * included in all copies or substantial portions of the Software. 00025 * 00026 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00027 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00028 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00029 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00030 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00031 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00032 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00033 * OTHER DEALINGS IN THE SOFTWARE. 00034 * =============================================================== 00035 */ 00036 00037 #ifndef NTLIBC_H 00038 #define NTLIBC_H 00039 00040 #ifndef size_t 00041 typedef unsigned int size_t; 00042 #endif 00043 00044 size_t ntlibc_strlen(const char *s); 00045 char *ntlibc_strcpy(char *des, const char *src); 00046 char *ntlibc_strcat(char *des, const char *src); 00047 int ntlibc_strcmp(const char *s1, const char *s2); 00048 int ntlibc_strncmp(const char *s1, const char *s2, size_t n); 00049 00050 #endif 00051
Generated on Fri Jul 15 2022 00:05:03 by 1.7.2