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

Committer:
shintamainjp
Date:
Sun May 22 02:51:35 2011 +0000
Revision:
0:7147d6024de8
Initial version.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shintamainjp 0:7147d6024de8 1 /**
shintamainjp 0:7147d6024de8 2 * @file ntopt.h
shintamainjp 0:7147d6024de8 3 * @author Shinichiro Nakamura
shintamainjp 0:7147d6024de8 4 * @brief NT-Shell用オプション解析モジュールの定義。
shintamainjp 0:7147d6024de8 5 */
shintamainjp 0:7147d6024de8 6
shintamainjp 0:7147d6024de8 7 /*
shintamainjp 0:7147d6024de8 8 * ===============================================================
shintamainjp 0:7147d6024de8 9 * Natural Tiny Shell (NT-Shell)
shintamainjp 0:7147d6024de8 10 * Version 0.0.6
shintamainjp 0:7147d6024de8 11 * ===============================================================
shintamainjp 0:7147d6024de8 12 * Copyright (c) 2010-2011 Shinichiro Nakamura
shintamainjp 0:7147d6024de8 13 *
shintamainjp 0:7147d6024de8 14 * Permission is hereby granted, free of charge, to any person
shintamainjp 0:7147d6024de8 15 * obtaining a copy of this software and associated documentation
shintamainjp 0:7147d6024de8 16 * files (the "Software"), to deal in the Software without
shintamainjp 0:7147d6024de8 17 * restriction, including without limitation the rights to use,
shintamainjp 0:7147d6024de8 18 * copy, modify, merge, publish, distribute, sublicense, and/or
shintamainjp 0:7147d6024de8 19 * sell copies of the Software, and to permit persons to whom the
shintamainjp 0:7147d6024de8 20 * Software is furnished to do so, subject to the following
shintamainjp 0:7147d6024de8 21 * conditions:
shintamainjp 0:7147d6024de8 22 *
shintamainjp 0:7147d6024de8 23 * The above copyright notice and this permission notice shall be
shintamainjp 0:7147d6024de8 24 * included in all copies or substantial portions of the Software.
shintamainjp 0:7147d6024de8 25 *
shintamainjp 0:7147d6024de8 26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
shintamainjp 0:7147d6024de8 27 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
shintamainjp 0:7147d6024de8 28 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
shintamainjp 0:7147d6024de8 29 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
shintamainjp 0:7147d6024de8 30 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
shintamainjp 0:7147d6024de8 31 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
shintamainjp 0:7147d6024de8 32 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
shintamainjp 0:7147d6024de8 33 * OTHER DEALINGS IN THE SOFTWARE.
shintamainjp 0:7147d6024de8 34 * ===============================================================
shintamainjp 0:7147d6024de8 35 */
shintamainjp 0:7147d6024de8 36
shintamainjp 0:7147d6024de8 37 #ifndef _NTOPT_H_
shintamainjp 0:7147d6024de8 38 #define _NTOPT_H_
shintamainjp 0:7147d6024de8 39
shintamainjp 0:7147d6024de8 40 #define NTOPT_MAXCNT_ARGC 32
shintamainjp 0:7147d6024de8 41 #define NTOPT_MAXLEN_ARGV 32
shintamainjp 0:7147d6024de8 42
shintamainjp 0:7147d6024de8 43 int ntopt_parse(const char *str, void (*func)(int argc, char **argv));
shintamainjp 0:7147d6024de8 44
shintamainjp 0:7147d6024de8 45 #endif
shintamainjp 0:7147d6024de8 46