1 /******************************COPYRIGHT NOTICE*******************************/
2 /* (c) Centro de Regulacio Genomica */
5 /* 12 Aug 2014 - 22:07. */
6 /*All rights reserved. */
7 /*This file is part of T-COFFEE. */
9 /* T-COFFEE is free software; you can redistribute it and/or modify */
10 /* it under the terms of the GNU General Public License as published by */
11 /* the Free Software Foundation; either version 2 of the License, or */
12 /* (at your option) any later version. */
14 /* T-COFFEE is distributed in the hope that it will be useful, */
15 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
16 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
17 /* GNU General Public License for more details. */
19 /* You should have received a copy of the GNU General Public License */
20 /* along with Foobar; if not, write to the Free Software */
21 /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
22 /*............................................... */
23 /* If you need some more information */
24 /* cedric.notredame@europe.com */
25 /*............................................... */
26 /******************************COPYRIGHT NOTICE*******************************/
39 * \brief Wrapper for fopen.
41 * \param name_f The name of the file to open.
42 * \param mode The mode in which to open the file
43 * \return The opend File. On failure an error message is printed and the program exits.
46 my_fopen(char *name_f, char *mode);
49 * \brief Wrapper for the malloc function.
50 * \param size The size of the memory block to allocate
51 * \return Pointer to the newly allocated block of memory. On failure an error message is printed and the program exits.
54 my_malloc(size_t size);
57 * \brief Wrapper for the realloc function.
58 * \param size The size of the memory block to allocate
59 * \return Pointer to the newly allocated block of memory. On failure an error message is printed and the program exits.
62 my_realloc(void *p, size_t size);
65 * \brief Wrapper for the calloc function.
66 * \param size The size of the memory block to allocate
67 * \return Pointer to the newly allocated block of memory. On failure an error message is printed and the program exits.
70 my_calloc ( size_t num, size_t size );
73 * \brief Makes a temporary file.
75 * In case of failure, the program exits.
76 * \param templatee The template to used for making the temporary file.
77 * \param function The function from where this was called (For error message)
80 my_make_temp_dir(char *templatee, char *function);