⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ebutil.html

📁 eybuild中文手册 eybuild中文手册 eybuild中文手册
💻 HTML
字号:
<html>
<head>
<!-- E:/eybuild/doc/export//ebutil.html - generated by refgen from ebutil.c -->
 <title> ebutil </title>
</head>
<body bgcolor="#FFFFFF"> <hr>

<a name="top"></a>
<p align=right>
<a href="libIndex.htm"><i>eyBuildLib API Reference :  eyBuildLib</i></a></p>

</blockquote><h1>ebutil</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebutil</strong> - util tools </p>


</blockquote><h4>ROUTINES</h4><blockquote><p>
<p>
<b><a href="./ebutil.html#list_environ">list_environ</a>(&nbsp;)</b>  -  list environment variables<br>
<b><a href="./ebutil.html#strcmpin">strcmpin</a>(&nbsp;)</b>  -  compare strings, ignoring case<br>
<b><a href="./ebutil.html#memshow">memshow</a>(&nbsp;)</b>  -  list the data of specified memory area <br>
<b><a href="./ebutil.html#trimspace">trimspace</a>(&nbsp;)</b>  -  trim space and tab<br>
<b><a href="./ebutil.html#get_filename">get_filename</a>(&nbsp;)</b>  -  get filename from full path<br>
<b><a href="./ebutil.html#isblankstr">isblankstr</a>(&nbsp;)</b>  -  check a string is NULL or only include spaces/tabs<br>
<b><a href="./ebutil.html#ebI2A">ebI2A</a>(&nbsp;)</b>  -  convert number into a string (decimal number format)<br>
<b><a href="./ebutil.html#make_c_name">make_c_name</a>(&nbsp;)</b>  -  make name like C function/variable name<br>
<p>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
util tools library
<p>
</blockquote><h4>INCLUDE</h4><blockquote><p>
<b>ebutil.h</b>

<hr>
<a name="list_environ"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>list_environ(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>list_environ(&nbsp;)</strong> - list environment variables</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int list_environ ()</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to list environment variables
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="strcmpin"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>strcmpin(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>strcmpin(&nbsp;)</strong> - compare strings, ignoring case</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int strcmpin
    (
    char * s1,
    char * s2,
    int    n
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine compare strings, ignoring case
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
same as strcmp
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="memshow"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>memshow(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>memshow(&nbsp;)</strong> - list the data of specified memory area </p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int memshow
    (
    void * pstart,
    size_t size
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine list the data of specified memory area with 2byte width.
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="trimspace"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>trimspace(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>trimspace(&nbsp;)</strong> - trim space and tab</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * trimspace
    (
    char * * ppstart,
    char *   *ppend
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine jump over header space/tab, and fill <b>\0</b> at tail
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
pointer to the new start address
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="get_filename"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>get_filename(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>get_filename(&nbsp;)</strong> - get filename from full path</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * get_filename
    (
    char * fullname
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine return the next address of last <b>/</b> or <b>\</b>, 
or the start address if not found
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
pointer to filename
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="isblankstr"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>isblankstr(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>isblankstr(&nbsp;)</strong> - check a string is NULL or only include spaces/tabs</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>BOOL isblankstr
    (
    char * pstr
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine checks a string is NULL or only include spaces/tabs
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
TRUE if is NULL or only include spaces/tabs, othersize FALSE
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="ebI2A"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebI2A(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebI2A(&nbsp;)</strong> - convert number into a string (decimal number format)</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * ebI2A
    (
    int num
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to convert number into a string (decimal number format),
it allocate a buffer dynamicly, so you should free this buffer with <b>free(&nbsp;)</b>
manually. 
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
a number string, or "" if allocate memory fault
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

<hr>
<a name="make_c_name"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>make_c_name(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>make_c_name(&nbsp;)</strong> - make name like C function/variable name</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>char * make_c_name
    (
    char * pname
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to make name like C function/variable name
<p>
</blockquote><h4>RETURNS</h4><blockquote><p>
pointer to new name
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebutil.html#top">ebutil</a></b>

</body>
</html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -