cscg22-gearboy

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

asm_2gbz80_2string_8h_source.html (18124B)


      1<!-- HTML header for doxygen 1.8.14-->
      2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3<html xmlns="http://www.w3.org/1999/xhtml">
      4<head>
      5<meta http-equiv="cache-control" content="max-age=86400"/>
      6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
      7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
      8<meta name="generator" content="Doxygen 1.8.20"/>
      9<meta name="viewport" content="width=device-width, initial-scale=1"/>
     10<title>GBDK 2020 Docs: asm/gbz80/string.h Source File</title>
     11<link href="tabs.css" rel="stylesheet" type="text/css"/>
     12<script type="text/javascript" src="jquery.js"></script>
     13<script type="text/javascript" src="dynsections.js"></script>
     14<link href="navtree.css" rel="stylesheet" type="text/css"/>
     15<script type="text/javascript" src="resize.js"></script>
     16<script type="text/javascript" src="navtreedata.js"></script>
     17<script type="text/javascript" src="navtree.js"></script>
     18<link href="search/search.css" rel="stylesheet" type="text/css"/>
     19<script type="text/javascript" src="search/searchdata.js"></script>
     20<script type="text/javascript" src="search/search.js"></script>
     21<link href="doxygen.css" rel="stylesheet" type="text/css" />
     22<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
     23</head>
     24<body>
     25<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
     26<div id="titlearea">
     27<table cellspacing="0" cellpadding="0">
     28 <tbody>
     29 <tr style="height: 56px;">
     30  <td id="projectalign" style="padding-left: 0.5em;">
     31   <div id="projectname">GBDK 2020 Docs
     32   &#160;<span id="projectnumber">4.0.6</span>
     33   </div>
     34   <div id="projectbrief">API Documentation for GBDK 2020</div>
     35  </td>
     36 </tr>
     37 </tbody>
     38</table>
     39</div>
     40<!-- end header part -->
     41<!-- Generated by Doxygen 1.8.20 -->
     42<script type="text/javascript">
     43/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     44var searchBox = new SearchBox("searchBox", "search",false,'Search');
     45/* @license-end */
     46</script>
     47<script type="text/javascript" src="menudata.js"></script>
     48<script type="text/javascript" src="menu.js"></script>
     49<script type="text/javascript">
     50/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     51$(function() {
     52  initMenu('',true,false,'search.php','Search');
     53  $(document).ready(function() { init_search(); });
     54});
     55/* @license-end */</script>
     56<div id="main-nav"></div>
     57</div><!-- top -->
     58<div id="side-nav" class="ui-resizable side-nav-resizable">
     59  <div id="nav-tree">
     60    <div id="nav-tree-contents">
     61      <div id="nav-sync" class="sync"></div>
     62    </div>
     63  </div>
     64  <div id="splitbar" style="-moz-user-select:none;" 
     65       class="ui-resizable-handle">
     66  </div>
     67</div>
     68<script type="text/javascript">
     69/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
     70$(document).ready(function(){initNavTree('asm_2gbz80_2string_8h_source.html',''); initResizable(); });
     71/* @license-end */
     72</script>
     73<div id="doc-content">
     74<!-- window showing the filter options -->
     75<div id="MSearchSelectWindow"
     76     onmouseover="return searchBox.OnSearchSelectShow()"
     77     onmouseout="return searchBox.OnSearchSelectHide()"
     78     onkeydown="return searchBox.OnSearchSelectKey(event)">
     79</div>
     80
     81<!-- iframe showing the search results (closed by default) -->
     82<div id="MSearchResultsWindow">
     83<iframe src="javascript:void(0)" frameborder="0" 
     84        name="MSearchResults" id="MSearchResults">
     85</iframe>
     86</div>
     87
     88<div class="header">
     89  <div class="headertitle">
     90<div class="title">string.h</div>  </div>
     91</div><!--header-->
     92<div class="contents">
     93<a href="asm_2gbz80_2string_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
     94<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef STRING_INCLUDE</span></div>
     95<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define STRING_INCLUDE</span></div>
     96<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
     97<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="types_8h.html">types.h</a>&gt;</span></div>
     98<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
     99<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#ada128b5ed545214bb397d1399615ec9e">   20</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="asm_2gbz80_2string_8h.html#ada128b5ed545214bb397d1399615ec9e">strcpy</a>(<span class="keywordtype">char</span> *dest, <span class="keyword">const</span> <span class="keywordtype">char</span> *src) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    100<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
    101<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a7172770a053aa1fe0ab46a97ab43a5fa">   32</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="asm_2gbz80_2string_8h.html#a7172770a053aa1fe0ab46a97ab43a5fa">strcmp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s1, <span class="keyword">const</span> <span class="keywordtype">char</span> *s2) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    102<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
    103<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a6a1a6cbe7fb6102819098340a4986574">   42</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a6a1a6cbe7fb6102819098340a4986574">memcpy</a>(<span class="keywordtype">void</span> *dest, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <span class="keywordtype">size_t</span> len) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    104<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
    105<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a802c986820d3866639922b6bc9484f90">   46</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a802c986820d3866639922b6bc9484f90">memmove</a> (<span class="keywordtype">void</span> *dest, <span class="keyword">const</span> <span class="keywordtype">void</span> *src, <span class="keywordtype">size_t</span> n);</div>
    106<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
    107<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a4bc4146b1a053fc4ec10f1377bb21a4f">   54</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a4bc4146b1a053fc4ec10f1377bb21a4f">memset</a> (<span class="keywordtype">void</span> *s, <span class="keywordtype">int</span> <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>, <span class="keywordtype">size_t</span> n) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    108<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
    109<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a476b2b37367c65c6cb36037bfc16b19f">   66</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a476b2b37367c65c6cb36037bfc16b19f">reverse</a>(<span class="keywordtype">char</span> *s) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    110<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
    111<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a8908188ae9fc2f05d993257ef001d553">   79</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a8908188ae9fc2f05d993257ef001d553">strcat</a>(<span class="keywordtype">char</span> *s1, <span class="keyword">const</span> <span class="keywordtype">char</span> *s2);</div>
    112<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
    113<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a5e4982e9d2fd4ec328abfda6b1a3f7e5">   87</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="asm_2gbz80_2string_8h.html#a5e4982e9d2fd4ec328abfda6b1a3f7e5">strlen</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
    114<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
    115<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#af70714f788819be9dbf368a969be23f7">   99</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="asm_2gbz80_2string_8h.html#af70714f788819be9dbf368a969be23f7">strncat</a>(<span class="keywordtype">char</span> *s1, <span class="keyword">const</span> <span class="keywordtype">char</span> *s2, <span class="keywordtype">int</span> n);</div>
    116<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
    117<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#ab745ed93c0024648f33dc1d553e9fdcc">  115</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="asm_2gbz80_2string_8h.html#ab745ed93c0024648f33dc1d553e9fdcc">strncmp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s1, <span class="keyword">const</span> <span class="keywordtype">char</span> *s2, <span class="keywordtype">int</span> n);</div>
    118<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
    119<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a21ae87d60fcc456369668093c57db61f">  132</a></span>&#160;<span class="keywordtype">char</span> *<a class="code" href="asm_2gbz80_2string_8h.html#a21ae87d60fcc456369668093c57db61f">strncpy</a>(<span class="keywordtype">char</span> *s1, <span class="keyword">const</span> <span class="keywordtype">char</span> *s2, <span class="keywordtype">int</span> n);</div>
    120<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
    121<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="asm_2gbz80_2string_8h.html#a52701f453c97403ec1b12d286484259b">  148</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="asm_2gbz80_2string_8h.html#a52701f453c97403ec1b12d286484259b">memcmp</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *buf1, <span class="keyword">const</span> <span class="keywordtype">void</span> *buf2, <span class="keywordtype">size_t</span> count) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a>;</div>
    122<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
    123<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#endif</span></div>
    124</div><!-- fragment --></div><!-- contents -->
    125</div><!-- doc-content -->
    126<div class="ttc" id="aasm_2gbz80_2string_8h_html_ada128b5ed545214bb397d1399615ec9e"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#ada128b5ed545214bb397d1399615ec9e">strcpy</a></div><div class="ttdeci">char * strcpy(char *dest, const char *src) OLDCALL PRESERVES_REGS(b</div></div>
    127<div class="ttc" id="atypes_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div></div>
    128<div class="ttc" id="aasm_2gbz80_2string_8h_html_a476b2b37367c65c6cb36037bfc16b19f"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a476b2b37367c65c6cb36037bfc16b19f">reverse</a></div><div class="ttdeci">char * reverse(char *s) OLDCALL PRESERVES_REGS(b</div></div>
    129<div class="ttc" id="aasm_2gbz80_2string_8h_html_a52701f453c97403ec1b12d286484259b"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a52701f453c97403ec1b12d286484259b">memcmp</a></div><div class="ttdeci">int memcmp(const void *buf1, const void *buf2, size_t count) OLDCALL</div></div>
    130<div class="ttc" id="aasm_2gbz80_2string_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">char c</div><div class="ttdef"><b>Definition:</b> string.h:20</div></div>
    131<div class="ttc" id="aasm_2gbz80_2string_8h_html_af70714f788819be9dbf368a969be23f7"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#af70714f788819be9dbf368a969be23f7">strncat</a></div><div class="ttdeci">char * strncat(char *s1, const char *s2, int n)</div></div>
    132<div class="ttc" id="aasm_2gbz80_2string_8h_html_a802c986820d3866639922b6bc9484f90"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a802c986820d3866639922b6bc9484f90">memmove</a></div><div class="ttdeci">void * memmove(void *dest, const void *src, size_t n)</div></div>
    133<div class="ttc" id="aasm_2gbz80_2string_8h_html_a4bc4146b1a053fc4ec10f1377bb21a4f"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a4bc4146b1a053fc4ec10f1377bb21a4f">memset</a></div><div class="ttdeci">void * memset(void *s, int c, size_t n) OLDCALL PRESERVES_REGS(b</div></div>
    134<div class="ttc" id="aasm_2gbz80_2string_8h_html_a6a1a6cbe7fb6102819098340a4986574"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a6a1a6cbe7fb6102819098340a4986574">memcpy</a></div><div class="ttdeci">void * memcpy(void *dest, const void *src, size_t len) OLDCALL PRESERVES_REGS(b</div></div>
    135<div class="ttc" id="aasm_2gbz80_2string_8h_html_ab745ed93c0024648f33dc1d553e9fdcc"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#ab745ed93c0024648f33dc1d553e9fdcc">strncmp</a></div><div class="ttdeci">int strncmp(const char *s1, const char *s2, int n)</div></div>
    136<div class="ttc" id="agb_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> gb.h:608</div></div>
    137<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:19</div></div>
    138<div class="ttc" id="aasm_2gbz80_2string_8h_html_a8908188ae9fc2f05d993257ef001d553"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a8908188ae9fc2f05d993257ef001d553">strcat</a></div><div class="ttdeci">char * strcat(char *s1, const char *s2)</div></div>
    139<div class="ttc" id="aasm_2gbz80_2string_8h_html_a7172770a053aa1fe0ab46a97ab43a5fa"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a7172770a053aa1fe0ab46a97ab43a5fa">strcmp</a></div><div class="ttdeci">int strcmp(const char *s1, const char *s2) OLDCALL PRESERVES_REGS(b</div></div>
    140<div class="ttc" id="aasm_2gbz80_2string_8h_html_a21ae87d60fcc456369668093c57db61f"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a21ae87d60fcc456369668093c57db61f">strncpy</a></div><div class="ttdeci">char * strncpy(char *s1, const char *s2, int n)</div></div>
    141<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:29</div></div>
    142<div class="ttc" id="aasm_2gbz80_2string_8h_html_a5e4982e9d2fd4ec328abfda6b1a3f7e5"><div class="ttname"><a href="asm_2gbz80_2string_8h.html#a5e4982e9d2fd4ec328abfda6b1a3f7e5">strlen</a></div><div class="ttdeci">int strlen(const char *s) OLDCALL PRESERVES_REGS(b</div></div>
    143<!-- HTML footer for doxygen 1.8.14-->
    144<!-- start footer part -->
    145<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
    146</div>
    147</body>
    148</html>