fstests: initial bcachefs support
[xfstests-dev.git] / include / string_to_tokens.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2000 Silicon Graphics, Inc.
4  * All Rights Reserved.
5  */
6 #ifndef _STRING_TO_TOKENS_H_
7 #define _STRING_TO_TOKENS_H_
8
9 /*
10  * string_to_tokens() 
11  *
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.
15  *
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.
19  */
20 int string_to_tokens(char *, char **, int, char *);
21
22 #endif