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
ntopt.h
00001 /** 00002 * @file ntopt.h 00003 * @author Shinichiro Nakamura 00004 * @brief NT-Shell用オプション解析モジュールの定義。 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 _NTOPT_H_ 00038 #define _NTOPT_H_ 00039 00040 #define NTOPT_MAXCNT_ARGC 32 00041 #define NTOPT_MAXLEN_ARGV 32 00042 00043 int ntopt_parse(const char *str, void (*func)(int argc, char **argv)); 00044 00045 #endif 00046
Generated on Fri Jul 15 2022 00:05:03 by 1.7.2