1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000 Silicon Graphics, Inc.
6 #ifndef _STRING_TO_TOKENS_H_
7 #define _STRING_TO_TOKENS_H_
12 * This function parses the string 'arg_string', placing pointers to
13 * the 'separator' separated tokens into the elements of 'arg_array'.
14 * The array is terminated with a null pointer.
16 * NOTE: This function uses strtok() to parse 'arg_string', and thus
17 * physically alters 'arg_string' by placing null characters where the
18 * separators originally were.
20 int string_to_tokens(char *, char **, int, char *);