1149871Sscottl/* 2149871Sscottl * Automated Testing Framework (atf) 3136849Sscottl * 4136849Sscottl * Copyright (c) 2008 The NetBSD Foundation, Inc. 5136849Sscottl * All rights reserved. 6136849Sscottl * 7136849Sscottl * Redistribution and use in source and binary forms, with or without 8136849Sscottl * modification, are permitted provided that the following conditions 9136849Sscottl * are met: 10136849Sscottl * 1. Redistributions of source code must retain the above copyright 11136849Sscottl * notice, this list of conditions and the following disclaimer. 12136849Sscottl * 2. Redistributions in binary form must reproduce the above copyright 13136849Sscottl * notice, this list of conditions and the following disclaimer in the 14136849Sscottl * documentation and/or other materials provided with the distribution. 15136849Sscottl * 16136849Sscottl * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 17136849Sscottl * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18136849Sscottl * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19136849Sscottl * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20136849Sscottl * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 21136849Sscottl * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22136849Sscottl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 23136849Sscottl * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24136849Sscottl * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25136849Sscottl * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26136849Sscottl * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27136849Sscottl * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28136849Sscottl */ 29136849Sscottl 30136849Sscottl#if !defined(ATF_C_TEXT_H) 31190809Sdelphij#define ATF_C_TEXT_H 32136849Sscottl 33136849Sscottl#include <stdarg.h> 34136849Sscottl#include <stdbool.h> 35136849Sscottl 36136849Sscottl#include <atf-c/error_fwd.h> 37136849Sscottl 38136849Sscottl#include "list.h" 39149871Sscottl 40149871Sscottlatf_error_t atf_text_for_each_word(const char *, const char *, 41136849Sscottl atf_error_t (*)(const char *, void *), 42149871Sscottl void *); 43136849Sscottlatf_error_t atf_text_format(char **, const char *, ...); 44136849Sscottlatf_error_t atf_text_format_ap(char **, const char *, va_list); 45136849Sscottlatf_error_t atf_text_split(const char *, const char *, atf_list_t *); 46136849Sscottlatf_error_t atf_text_to_bool(const char *, bool *); 47136849Sscottlatf_error_t atf_text_to_long(const char *, long *); 48136849Sscottl 49149871Sscottl#endif /* ATF_C_TEXT_H */ 50149871Sscottl