put back np's supperrior buffer2array, and fix my bug fix from change 4872
git-svn-id: https://svn.musicpd.org/mpd/trunk@4875 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -21,8 +21,12 @@
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
int buffer2array(char *buffer, char ***array);
|
||||
|
||||
void freeArgArray(char **array, int argArrayLength);
|
||||
/* tokenizes up to max elements in buffer (a null-terminated string) and
|
||||
* stores the result in array (which must be capable of holding up to
|
||||
* max elements). Tokenization is based on C string quoting rules.
|
||||
* The arguments buffer and array are modified.
|
||||
* Returns the number of elements tokenized.
|
||||
*/
|
||||
int buffer2array(char *buffer, char *array[], const int max);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user