strlst.h (1169B)
1/** 2 * String list Manipulation (UTILS) 3 * 4 * Copyright 2018 Pascal Bourguignon <pjb@informatimago.com> 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19#ifndef WINPR_UTILS_STRLST_H 20#define WINPR_UTILS_STRLST_H 21 22#include <stdio.h> 23 24#include <winpr/winpr.h> 25#include <winpr/wtypes.h> 26 27#ifdef __cplusplus 28extern "C" 29{ 30#endif 31 32 WINPR_API void string_list_free(char** string_list); 33 WINPR_API int string_list_length(const char* const* string_list); 34 WINPR_API char** string_list_copy(const char* const* string_list); 35 WINPR_API void string_list_print(FILE* out, const char* const* string_list); 36 37#ifdef __cplusplus 38} 39#endif 40 41#endif /* WINPR_UTILS_STRLST_H */