2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
8 This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0
9 US). To view a copy of this license, visit http://creativecommons.org.license/by-sa/3.0/us.
14 xmlns:xi="http://www.w3.org/2001/XInclude">
16 <!-- See http://www.docbook.org/tdg/en/html/refentry.html. -->
19 <refentrytitle>waffle_enum</refentrytitle>
20 <manvolnum>3</manvolnum>
24 <refname>waffle_enum</refname>
25 <refname>waffle_enum_to_string</refname>
29 <title>Waffle Manual</title>
30 <productname>waffle</productname>
31 <xi:include href="common/author-chad.versace.xml"/>
32 <xi:include href="common/copyright.xml"/>
33 <xi:include href="common/legalnotice.xml"/>
38 <funcsynopsis language="C">
41 #include <waffle.h>
43 enum waffle_enum {...};
47 <funcdef>const char* <function>waffle_enum_to_string</function></funcdef>
48 <paramdef>int32_t <parameter>e</parameter></paramdef>
55 <title>Description</title>
60 <term><function>waffle_enum_to_string()</function></term>
63 Convert an <type>waffle_enum</type> token to a string.
64 For example, convert <constant>WAFFLE_DONT_CARE</constant> to <code>"WAFFLE_DONT_CARE"</code>.
65 Return null if the token is not a valid <type>waffle_enum</type>.
68 This function always sets the error code to <constant>WAFFLE_NO_ERROR</constant>.
69 It can be called before waffle has been successfully initialized with
70 <citerefentry><refentrytitle><function>waffle_init</function></refentrytitle><manvolnum>3</manvolnum></citerefentry>
79 <xi:include href="common/issues.xml"/>
82 <title>See Also</title>
84 <citerefentry><refentrytitle>waffle</refentrytitle><manvolnum>7</manvolnum></citerefentry>
91 vim:tw=120 et ts=2 sw=2: