cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

parsehelper_8c.html (8911B)


      1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2<html xmlns="http://www.w3.org/1999/xhtml">
      3<head>
      4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      6<meta name="generator" content="Doxygen 1.8.4"/>
      7<title>SDL Visual Test: C:/Users/DELL/Work/sdlvisualtest/visualtest/src/parsehelper.c File Reference</title>
      8<link href="tabs.css" rel="stylesheet" type="text/css"/>
      9<script type="text/javascript" src="jquery.js"></script>
     10<script type="text/javascript" src="dynsections.js"></script>
     11<link href="search/search.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="search/search.js"></script>
     13<script type="text/javascript">
     14  $(document).ready(function() { searchBox.OnSelectItem(0); });
     15</script>
     16<link href="doxygen.css" rel="stylesheet" type="text/css" />
     17</head>
     18<body>
     19<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     20<div id="titlearea">
     21<table cellspacing="0" cellpadding="0">
     22 <tbody>
     23 <tr style="height: 56px;">
     24  <td style="padding-left: 0.5em;">
     25   <div id="projectname">SDL Visual Test
     26   </div>
     27  </td>
     28 </tr>
     29 </tbody>
     30</table>
     31</div>
     32<!-- end header part -->
     33<!-- Generated by Doxygen 1.8.4 -->
     34<script type="text/javascript">
     35var searchBox = new SearchBox("searchBox", "search",false,'Search');
     36</script>
     37  <div id="navrow1" class="tabs">
     38    <ul class="tablist">
     39      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
     40      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
     41      <li class="current"><a href="files.html"><span>Files</span></a></li>
     42      <li>
     43        <div id="MSearchBox" class="MSearchBoxInactive">
     44        <span class="left">
     45          <img id="MSearchSelect" src="search/mag_sel.png"
     46               onmouseover="return searchBox.OnSearchSelectShow()"
     47               onmouseout="return searchBox.OnSearchSelectHide()"
     48               alt=""/>
     49          <input type="text" id="MSearchField" value="Search" accesskey="S"
     50               onfocus="searchBox.OnSearchFieldFocus(true)" 
     51               onblur="searchBox.OnSearchFieldFocus(false)" 
     52               onkeyup="searchBox.OnSearchFieldChange(event)"/>
     53          </span><span class="right">
     54            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
     55          </span>
     56        </div>
     57      </li>
     58    </ul>
     59  </div>
     60  <div id="navrow2" class="tabs2">
     61    <ul class="tablist">
     62      <li><a href="files.html"><span>File&#160;List</span></a></li>
     63      <li><a href="globals.html"><span>Globals</span></a></li>
     64    </ul>
     65  </div>
     66<!-- window showing the filter options -->
     67<div id="MSearchSelectWindow"
     68     onmouseover="return searchBox.OnSearchSelectShow()"
     69     onmouseout="return searchBox.OnSearchSelectHide()"
     70     onkeydown="return searchBox.OnSearchSelectKey(event)">
     71<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>
     72
     73<!-- iframe showing the search results (closed by default) -->
     74<div id="MSearchResultsWindow">
     75<iframe src="javascript:void(0)" frameborder="0" 
     76        name="MSearchResults" id="MSearchResults">
     77</iframe>
     78</div>
     79
     80<div id="nav-path" class="navpath">
     81  <ul>
     82<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
     83</div>
     84</div><!-- top -->
     85<div class="header">
     86  <div class="summary">
     87<a href="#func-members">Functions</a>  </div>
     88  <div class="headertitle">
     89<div class="title">parsehelper.c File Reference</div>  </div>
     90</div><!--header-->
     91<div class="contents">
     92<div class="textblock"><code>#include &lt;SDL_test.h&gt;</code><br/>
     93<code>#include &quot;<a class="el" href="_s_d_l__visualtest__harness__argparser_8h_source.html">SDL_visualtest_harness_argparser.h</a>&quot;</code><br/>
     94</div><table class="memberdecls">
     95<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
     96Functions</h2></td></tr>
     97<tr class="memitem:a508e690ed938e09fc3b724d2faf06899"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parsehelper_8c.html#a508e690ed938e09fc3b724d2faf06899">SDLVisualTest_Tokenize</a> (char *str, int max_token_len)</td></tr>
     98<tr class="separator:a508e690ed938e09fc3b724d2faf06899"><td class="memSeparator" colspan="2">&#160;</td></tr>
     99<tr class="memitem:a5f168fdd02f9d40ddbad97bd8c0b6361"><td class="memItemLeft" align="right" valign="top">char **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parsehelper_8c.html#a5f168fdd02f9d40ddbad97bd8c0b6361">SDLVisualTest_ParseArgsToArgv</a> (char *args)</td></tr>
    100<tr class="separator:a5f168fdd02f9d40ddbad97bd8c0b6361"><td class="memSeparator" colspan="2">&#160;</td></tr>
    101</table>
    102<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
    103<div class="textblock"><p>Source file with some helper functions for parsing strings. </p>
    104</div><h2 class="groupheader">Function Documentation</h2>
    105<a class="anchor" id="a5f168fdd02f9d40ddbad97bd8c0b6361"></a>
    106<div class="memitem">
    107<div class="memproto">
    108      <table class="memname">
    109        <tr>
    110          <td class="memname">char** SDLVisualTest_ParseArgsToArgv </td>
    111          <td>(</td>
    112          <td class="paramtype">char *&#160;</td>
    113          <td class="paramname"><em>args</em>)</td><td></td>
    114          <td></td>
    115        </tr>
    116      </table>
    117</div><div class="memdoc">
    118<p>Takes an string of command line arguments and breaks them up into an array based on whitespace.</p>
    119<dl class="params"><dt>Parameters</dt><dd>
    120  <table class="params">
    121    <tr><td class="paramname">args</td><td>The string of arguments.</td></tr>
    122  </table>
    123  </dd>
    124</dl>
    125<dl class="section return"><dt>Returns</dt><dd>NULL on failure, an array of strings on success. The last element of the array is NULL. The first element of the array is NULL and should be set to the path of the executable by the caller. </dd></dl>
    126
    127</div>
    128</div>
    129<a class="anchor" id="a508e690ed938e09fc3b724d2faf06899"></a>
    130<div class="memitem">
    131<div class="memproto">
    132      <table class="memname">
    133        <tr>
    134          <td class="memname">char** SDLVisualTest_Tokenize </td>
    135          <td>(</td>
    136          <td class="paramtype">char *&#160;</td>
    137          <td class="paramname"><em>str</em>, </td>
    138        </tr>
    139        <tr>
    140          <td class="paramkey"></td>
    141          <td></td>
    142          <td class="paramtype">int&#160;</td>
    143          <td class="paramname"><em>max_token_len</em>&#160;</td>
    144        </tr>
    145        <tr>
    146          <td></td>
    147          <td>)</td>
    148          <td></td><td></td>
    149        </tr>
    150      </table>
    151</div><div class="memdoc">
    152<p>Takes a string and breaks it into tokens by splitting on whitespace.</p>
    153<dl class="params"><dt>Parameters</dt><dd>
    154  <table class="params">
    155    <tr><td class="paramname">str</td><td>The string to be split. </td></tr>
    156    <tr><td class="paramname">max_token_len</td><td>Length of each element in the array to be returned.</td></tr>
    157  </table>
    158  </dd>
    159</dl>
    160<dl class="section return"><dt>Returns</dt><dd>NULL on failure; an array of strings with the tokens on success. The last element of the array is NULL. </dd></dl>
    161
    162</div>
    163</div>
    164</div><!-- contents -->
    165<!-- start footer part -->
    166<hr class="footer"/><address class="footer"><small>
    167Generated on Thu Sep 26 2013 00:18:24 for SDL Visual Test by &#160;<a href="http://www.doxygen.org/index.html">
    168<img class="footer" src="doxygen.png" alt="doxygen"/>
    169</a> 1.8.4
    170</small></address>
    171</body>
    172</html>