"Fossies" - the Fresh Open Source Software Archive

Member "cook-2.34/common/ac/libintl.c" (25 Sep 2010, 1352 Bytes) of package /linux/misc/old/cook-2.34.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "libintl.c" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *      cook - file construction tool
    3  *      Copyright (C) 1997, 2006-2008 Peter Miller
    4  *
    5  *      This program is free software; you can redistribute it and/or modify
    6  *      it under the terms of the GNU General Public License as published by
    7  *      the Free Software Foundation; either version 3 of the License, or
    8  *      (at your option) any later version.
    9  *
   10  *      This program is distributed in the hope that it will be useful,
   11  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  *      GNU General Public License for more details.
   14  *
   15  *      You should have received a copy of the GNU General Public License
   16  *      along with this program. If not, see
   17  *      <http://www.gnu.org/licenses/>.
   18  */
   19 
   20 #include <common/ac/libintl.h>
   21 
   22 
   23 /*
   24  * NAME
   25  *      gettext
   26  *
   27  * DESCRIPTION
   28  *      The gettext function is used to translate messages into a
   29  *      language dictated by the LANG environment variable (et al).  If
   30  *      the current operating system does not supply one, then pass the
   31  *      message through unchanged.  (This is what gettext will do for
   32  *      error messages it does not have a translation for.)
   33  */
   34 
   35 #ifndef HAVE_GETTEXT
   36 
   37 char *
   38 gettext(s)
   39         const char      *s;
   40 {
   41         return (char *)s;
   42 }
   43 
   44 #endif /* !HAVE_GETTEXT */