00001 #ifndef H_MISC
00002 #define H_MISC
00003
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012
00020 rpmRC rpmMkdirPath (const char * dpath, const char * dname)
00021
00022 ;
00023
00031 char ** splitString(const char * str, int length, char sep)
00032 ;
00033
00038 void freeSplitString( char ** list)
00039 ;
00040
00047 static inline
00048 char * stripTrailingChar( char * s, char c)
00049
00050 {
00051 char * t;
00052
00053 for (t = s + strlen(s) - 1; *t == c && t >= s; t--)
00054 *t = '\0';
00055
00056 return s;
00057 }
00058
00066 int dosetenv(const char * name, const char * value, int overwrite)
00067
00068 ;
00069
00075 int doputenv(const char * str)
00076
00077 ;
00078
00092 int makeTempFile( const char * prefix,
00093 const char ** fnptr,
00094 FD_t * fdptr)
00095
00096
00097
00098 ;
00099
00104 char * currentDirectory(void)
00105 ;
00106
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110
00111 #endif