comparison src/util.h @ 7105:9d0e74b6ca68

[gaim-migrate @ 7670] Fix a double free. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 05:43:14 +0000
parents c8bf2da398e3
children db6bd3e794d8
comparison
equal deleted inserted replaced
7104:7700a28929bd 7105:9d0e74b6ca68
166 */ 166 */
167 const gchar *gaim_home_dir(void); 167 const gchar *gaim_home_dir(void);
168 168
169 /** 169 /**
170 * Returns the gaim settings directory in the user's home directory. 170 * Returns the gaim settings directory in the user's home directory.
171 * 171 *
172 * @return The gaim settings directory. 172 * @return The gaim settings directory.
173 * 173 *
174 * @see gaim_home_dir() 174 * @see gaim_home_dir()
175 */ 175 */
176 char *gaim_user_dir(void); 176 char *gaim_user_dir(void);
253 * The caller is responsible for closing the file and removing it when 253 * The caller is responsible for closing the file and removing it when
254 * done, as well as freeing the space pointed to by @a path with 254 * done, as well as freeing the space pointed to by @a path with
255 * g_free(). 255 * g_free().
256 * 256 *
257 * @param path The returned path to the temp file. 257 * @param path The returned path to the temp file.
258 * 258 *
259 * @return A file pointer to the temporary file, or @c NULL on failure. 259 * @return A file pointer to the temporary file, or @c NULL on failure.
260 */ 260 */
261 FILE *gaim_mkstemp(gchar **path); 261 FILE *gaim_mkstemp(gchar **path);
262 262
263 /** 263 /**
305 * Given a string, this replaces one substring with another 305 * Given a string, this replaces one substring with another
306 * and returns a newly allocated string. 306 * and returns a newly allocated string.
307 * 307 *
308 * @param string The string from which to replace stuff. 308 * @param string The string from which to replace stuff.
309 * @param delimiter The substring you want replaced. 309 * @param delimiter The substring you want replaced.
310 * @param replacement The substring you want inserted in place 310 * @param replacement The substring you want inserted in place
311 * of the delimiting substring. 311 * of the delimiting substring.
312 */ 312 */
313 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, 313 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter,
314 const gchar *replacement); 314 const gchar *replacement);
315 315