version 1.1.1.1, 2019/10/21 14:25:31
|
version 1.1.1.2, 2021/03/17 00:07:30
|
Line 11
|
Line 11
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
GNU General Public License for more details. |
|
|
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License along |
along with this program; if not, write to the Free Software | with this program; if not, write to the Free Software Foundation, Inc., |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
*/ |
*/ |
|
|
#include "cmdparse.h" |
#include "cmdparse.h" |
Line 66 int tokenize_command(
|
Line 66 int tokenize_command(
|
structure for later semantic interpretation. Returns EINVAL if the |
structure for later semantic interpretation. Returns EINVAL if the |
command string is unparseable or zero for success. |
command string is unparseable or zero for success. |
|
|
comamnd_string will be modified in-place with NUL characters terminating | command_string will be modified in-place with NUL characters terminating |
tokens, and the command_t will use pointers to the conents of | tokens, and the command_t will use pointers to the contents of |
command_string without copying, so any interpretation of the |
command_string without copying, so any interpretation of the |
command_t structure requires that the command_string memory has not yet |
command_t structure requires that the command_string memory has not yet |
been freed or otherwise reused. |
been freed or otherwise reused. |