Ignore:
Timestamp:
Apr 25, 2006, 11:59:58 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Check for <errno.h>.
  • Started changing function prototypes so that they return an integer instead of void, just in case they might fail.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/buffer.c

    r859 r870  
    3333 *  in the given \e libcucul buffer.
    3434 *
     35 *  This function never fails.
     36 *
    3537 *  \param buf A \e libcucul buffer
    3638 *  \return The buffer data length.
     
    4547 *  This function returns a pointer to the memory area stored in the given
    4648 *  \e libcucul buffer.
     49 *
     50 *  This function never fails.
    4751 *
    4852 *  \param buf A \e libcucul buffer
     
    5963 *  \e libcucul buffer.
    6064 *
     65 *  This function never fails.
     66 *
    6167 *  \param buf A \e libcucul buffer
     68 *  \return This function always returns 0.
    6269 */
    63 void cucul_free_buffer(cucul_buffer_t *buf)
     70int cucul_free_buffer(cucul_buffer_t *buf)
    6471{
    6572    free(buf->data);
    6673    free(buf);
     74
     75    return 0;
    6776}
    6877
Note: See TracChangeset for help on using the changeset viewer.