Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 48aebc76604d00e261fd2a64f42d7eb8 > files > 94

liblomoco-devel-1.0-9mdv2010.0.i586.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>lomoco: iniparser/src/strlib.h Source File</title>

<style type="text/css">
  .cp-doNotDisplay { display: none; }
  @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }}
  .cp-edit { text-align: right; }
  @media print, embossed { .cp-edit { display: none; }}
</style>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />
  <link rel="stylesheet" type="text/css" href="doxygen.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="csync.css" />
  <link rel="stylesheet" media="print, embossed" type="text/css" href="print.css" />
</head>

<body>

<ul class="cp-doNotDisplay">
  <li><a href="#cp-content" accesskey="2">Skip to content</a></li>
  <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li>
</ul>

<div id="container">
<div id="header">
  <div id="header_top"><div><div style="padding: 10px 30px;">
  <!-- <img alt ="" src="top-kde.jpg"/> -->
    csync API Reference  </div></div></div>
  <div id="header_bottom">
    <div id="location">
      <ul>
        <li><a href="index.html">csync</a></li>
      </ul>
    </div>

    <div id="menu">
<ul><li><a href="http://www.csync.org/">Sitemap</a></li>
<li><a href="http://www.csync.org/">Contact Us</a></li>
</ul>
    </div>
  </div>
</div>
<!-- End page header -->
    <div id="body_wrapper">
      <div id="body">
        <!-- begin main content -->
        <div id="right">
          <div class="content">
          <div id="main">
            <div class="clearer">&nbsp;</div>
    <!-- <h2><a name="content"></a>lomoco</h2> -->

<!-- BC -->
<!-- Generated by Doxygen 1.5.9 -->
  <div class="navpath"><a class="el" href="dir_83899319ec122a03d431d68c45b0dd06.html">iniparser</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_78cebf553df91c53d1da58b5e3c2bd5d.html">src</a>
  </div>
<div class="contents">
<h1>strlib.h</h1><a href="strlib_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">/**</span>
<a name="l00004"></a>00004 <span class="comment">  @file     strlib.h</span>
<a name="l00005"></a>00005 <span class="comment">  @author   N. Devillard</span>
<a name="l00006"></a>00006 <span class="comment">  @date     Jan 2001</span>
<a name="l00007"></a>00007 <span class="comment">  @version  $Revision: 1.4 $</span>
<a name="l00008"></a>00008 <span class="comment">  @brief    Various string handling routines to complement the C lib.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">  This modules adds a few complementary string routines usually missing</span>
<a name="l00011"></a>00011 <span class="comment">  in the standard C library.</span>
<a name="l00012"></a>00012 <span class="comment">*/</span>
<a name="l00013"></a>00013 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">/*</span>
<a name="l00016"></a>00016 <span class="comment">  $Id: strlib.h,v 1.4 2006-09-27 11:04:11 ndevilla Exp $</span>
<a name="l00017"></a>00017 <span class="comment">  $Author: ndevilla $</span>
<a name="l00018"></a>00018 <span class="comment">  $Date: 2006-09-27 11:04:11 $</span>
<a name="l00019"></a>00019 <span class="comment">  $Revision: 1.4 $</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _STRLIB_H_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _STRLIB_H_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="comment">/*---------------------------------------------------------------------------</span>
<a name="l00026"></a>00026 <span class="comment">                  Includes</span>
<a name="l00027"></a>00027 <span class="comment"> ---------------------------------------------------------------------------*/</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="comment">/*---------------------------------------------------------------------------</span>
<a name="l00033"></a>00033 <span class="comment">                Function codes</span>
<a name="l00034"></a>00034 <span class="comment"> ---------------------------------------------------------------------------*/</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00037"></a>00037 <span class="comment">/**</span>
<a name="l00038"></a>00038 <span class="comment">  @brief    Convert a string to lowercase.</span>
<a name="l00039"></a>00039 <span class="comment">  @param    s   String to convert.</span>
<a name="l00040"></a>00040 <span class="comment">  @return   ptr to statically allocated string.</span>
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">  This function returns a pointer to a statically allocated string</span>
<a name="l00043"></a>00043 <span class="comment">  containing a lowercased version of the input string. Do not free</span>
<a name="l00044"></a>00044 <span class="comment">  or modify the returned string! Since the returned string is statically</span>
<a name="l00045"></a>00045 <span class="comment">  allocated, it will be modified at each function call (not re-entrant).</span>
<a name="l00046"></a>00046 <span class="comment"> */</span>
<a name="l00047"></a>00047 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00048"></a>00048 <span class="keywordtype">char</span> * <a class="code" href="strlib_8h.html#4a0ac63230067db032e83b6a0d0d0ab2" title="Convert a string to lowercase.">strlwc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * s);
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00051"></a>00051 <span class="comment">/**</span>
<a name="l00052"></a>00052 <span class="comment">  @brief    Convert a string to uppercase.</span>
<a name="l00053"></a>00053 <span class="comment">  @param    s   String to convert.</span>
<a name="l00054"></a>00054 <span class="comment">  @return   ptr to statically allocated string.</span>
<a name="l00055"></a>00055 <span class="comment"></span>
<a name="l00056"></a>00056 <span class="comment">  This function returns a pointer to a statically allocated string</span>
<a name="l00057"></a>00057 <span class="comment">  containing an uppercased version of the input string. Do not free</span>
<a name="l00058"></a>00058 <span class="comment">  or modify the returned string! Since the returned string is statically</span>
<a name="l00059"></a>00059 <span class="comment">  allocated, it will be modified at each function call (not re-entrant).</span>
<a name="l00060"></a>00060 <span class="comment"> */</span>
<a name="l00061"></a>00061 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00062"></a>00062 <span class="keywordtype">char</span> * <a class="code" href="strlib_8h.html#380c989466f81bb89610ecbc2484cda8" title="Convert a string to uppercase.">strupc</a>(<span class="keywordtype">char</span> * s);
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment">/**</span>
<a name="l00066"></a>00066 <span class="comment">  @brief    Skip blanks until the first non-blank character.</span>
<a name="l00067"></a>00067 <span class="comment">  @param    s   String to parse.</span>
<a name="l00068"></a>00068 <span class="comment">  @return   Pointer to char inside given string.</span>
<a name="l00069"></a>00069 <span class="comment"></span>
<a name="l00070"></a>00070 <span class="comment">  This function returns a pointer to the first non-blank character in the</span>
<a name="l00071"></a>00071 <span class="comment">  given string.</span>
<a name="l00072"></a>00072 <span class="comment"> */</span>
<a name="l00073"></a>00073 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00074"></a>00074 <span class="keywordtype">char</span> * <a class="code" href="strlib_8h.html#804fefc4ae672a9c171d23f3eaed6275" title="Skip blanks until the first non-blank character.">strskp</a>(<span class="keywordtype">char</span> * s);
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">/**</span>
<a name="l00078"></a>00078 <span class="comment">  @brief    Remove blanks at the end of a string.</span>
<a name="l00079"></a>00079 <span class="comment">  @param    s   String to parse.</span>
<a name="l00080"></a>00080 <span class="comment">  @return   ptr to statically allocated string.</span>
<a name="l00081"></a>00081 <span class="comment"></span>
<a name="l00082"></a>00082 <span class="comment">  This function returns a pointer to a statically allocated string,</span>
<a name="l00083"></a>00083 <span class="comment">  which is identical to the input string, except that all blank</span>
<a name="l00084"></a>00084 <span class="comment">  characters at the end of the string have been removed.</span>
<a name="l00085"></a>00085 <span class="comment">  Do not free or modify the returned string! Since the returned string</span>
<a name="l00086"></a>00086 <span class="comment">  is statically allocated, it will be modified at each function call</span>
<a name="l00087"></a>00087 <span class="comment">  (not re-entrant).</span>
<a name="l00088"></a>00088 <span class="comment"> */</span>
<a name="l00089"></a>00089 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00090"></a>00090 <span class="keywordtype">char</span> * <a class="code" href="strlib_8h.html#15a50b812adcd449032948ffadab98da" title="Remove blanks at the end of a string.">strcrop</a>(<span class="keywordtype">char</span> * s);
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="comment">/*-------------------------------------------------------------------------*/</span><span class="comment"></span>
<a name="l00093"></a>00093 <span class="comment">/**</span>
<a name="l00094"></a>00094 <span class="comment">  @brief    Remove blanks at the beginning and the end of a string.</span>
<a name="l00095"></a>00095 <span class="comment">  @param    s   String to parse.</span>
<a name="l00096"></a>00096 <span class="comment">  @return   ptr to statically allocated string.</span>
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">  This function returns a pointer to a statically allocated string,</span>
<a name="l00099"></a>00099 <span class="comment">  which is identical to the input string, except that all blank</span>
<a name="l00100"></a>00100 <span class="comment">  characters at the end and the beg. of the string have been removed.</span>
<a name="l00101"></a>00101 <span class="comment">  Do not free or modify the returned string! Since the returned string</span>
<a name="l00102"></a>00102 <span class="comment">  is statically allocated, it will be modified at each function call</span>
<a name="l00103"></a>00103 <span class="comment">  (not re-entrant).</span>
<a name="l00104"></a>00104 <span class="comment"> */</span>
<a name="l00105"></a>00105 <span class="comment">/*--------------------------------------------------------------------------*/</span>
<a name="l00106"></a>00106 <span class="keywordtype">char</span> * <a class="code" href="strlib_8h.html#303735f22b5a9e776375de653d4188d1" title="Remove blanks at the beginning and the end of a string.">strstrip</a>(<span class="keywordtype">char</span> * s) ;
<a name="l00107"></a>00107 
<a name="l00108"></a>00108 <span class="preprocessor">#endif</span>
</pre></div></div>
            </div>
          </div>
        </div>
        <div id="left">
          <div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">lomoco</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "lomoco"</a>
</div></div>
<!-- menu -->

<div class="menu_box">
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">API Documentation</h2>
<a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "@topname@"</a>
</div></div>
<div class="nav_list">
<ul>
<!-- gmenu -->
</ul></div></div>

          </div>
        </div>
        <div class="clearer"></div>
      </div>
      <div class="clearer"></div>
    </div>


    <div id="end_body"></div>

    <div id="footer"><div id="footer_text">
    Generated with <a href="http://www.stack.nl/~dimitri/doxygen/" target="_blank">Doxygen</a>
    </div></div>
  </div>

</body>
</html>