📄 ebutil.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>( )</b> - list environment variables<br>
<b><a href="./ebutil.html#strcmpin">strcmpin</a>( )</b> - compare strings, ignoring case<br>
<b><a href="./ebutil.html#memshow">memshow</a>( )</b> - list the data of specified memory area <br>
<b><a href="./ebutil.html#trimspace">trimspace</a>( )</b> - trim space and tab<br>
<b><a href="./ebutil.html#get_filename">get_filename</a>( )</b> - get filename from full path<br>
<b><a href="./ebutil.html#isblankstr">isblankstr</a>( )</b> - check a string is NULL or only include spaces/tabs<br>
<b><a href="./ebutil.html#ebI2A">ebI2A</a>( )</b> - convert number into a string (decimal number format)<br>
<b><a href="./ebutil.html#make_c_name">make_c_name</a>( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>list_environ( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>strcmpin( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>memshow( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>trimspace( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>get_filename( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>isblankstr( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>ebI2A( )</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( )</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( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>
<p><strong>make_c_name( )</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 + -