Mercurial > pidgin
comparison src/util.h @ 10203:7ff9b8b22e7d
[gaim-migrate @ 11324]
gaim_mkstemp can now create binary files
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Thu, 18 Nov 2004 17:05:40 +0000 |
parents | b23e70bd1215 |
children | 357d4fa1bfbe |
comparison
equal
deleted
inserted
replaced
10202:ddf002ce58b6 | 10203:7ff9b8b22e7d |
---|---|
385 * | 385 * |
386 * The caller is responsible for closing the file and removing it when | 386 * The caller is responsible for closing the file and removing it when |
387 * done, as well as freeing the space pointed to by @a path with | 387 * done, as well as freeing the space pointed to by @a path with |
388 * g_free(). | 388 * g_free(). |
389 * | 389 * |
390 * @param path The returned path to the temp file. | 390 * @param path The returned path to the temp file. |
391 * @param binary Text or binary, for platforms where it matters. | |
391 * | 392 * |
392 * @return A file pointer to the temporary file, or @c NULL on failure. | 393 * @return A file pointer to the temporary file, or @c NULL on failure. |
393 */ | 394 */ |
394 FILE *gaim_mkstemp(char **path); | 395 FILE *gaim_mkstemp(char **path, gboolean binary); |
395 | 396 |
396 /** | 397 /** |
397 * Checks if the given program name is valid and executable. | 398 * Checks if the given program name is valid and executable. |
398 * | 399 * |
399 * @param program The file name of the application. | 400 * @param program The file name of the application. |