Main Page   Modules   Data Structures   File List   Data Fields   Globals  

tools.h

Go to the documentation of this file.
00001 /*
00002  * tools.h
00003  * Created on 14 Feb 2005
00004  * Authors:
00005  *    Wesley Leggette <wleggette@kaylix.net>
00006  * 
00007  * 
00008  * 
00009  * libdarc
00010  * 
00011  * 
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  * 
00026  * $Id: tools_8h-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028  
00039 #ifndef TOOLS_H
00040 #define TOOLS_H
00041 
00042 #include "translations.h"
00043 
00044 NAMESPACE_LIBDAR_START
00045 
00046 #ifdef __cplusplus
00047 extern "C"
00048 {
00049 #endif
00050 
00082 #define DAR_TOOLS_SI_BASE 1000
00083 
00084 #define DAR_TOOLS_BIN_BASE 1024
00085 
00086 
00087 
00088 
00119 DLLIMPORT dar_infinint *dar_tools_get_extended_size(char* s, U_I base);
00120 
00121 
00130 DLLIMPORT char* dar_tools_display_date( dar_infinint* date );
00131 
00132 
00133 
00173 DLLIMPORT char* dar_tools_string_justify_right(char* s, U_I min_size);
00177 DLLIMPORT char* dar_tools_string_justify_center(char* s, U_I min_size);
00183 DLLIMPORT char* dar_tools_string_justify_left(char* s, U_I min_size);
00184 
00189 DLLIMPORT char* dar_tools_string_justify_right_truncate(char* s, U_I fixed_size);
00195 DLLIMPORT char* dar_tools_string_justify_center_truncate(char* s, U_I fixed_size);
00201 DLLIMPORT char* dar_tools_string_justify_left_truncate(char* s, U_I fixed_size);
00202 
00215 DLLIMPORT char* dar_tools_name_of_uid( U_16 uid );
00219 DLLIMPORT char* dar_tools_name_of_gid( U_16 gid );
00224 DLLIMPORT char* dar_tools_get_cwd( );
00225 
00236 #ifdef __cplusplus
00237 }
00238 #endif
00239 
00240 
00241 NAMESPACE_LIBDAR_END
00242 
00243 #endif /* end of TOOLS_H */