/[baselayout]/trunk/src/rc.h
Gentoo

Diff of /trunk/src/rc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2995 Revision 2996
417 417
418/*! Frees each item on the list and the list itself. 418/*! Frees each item on the list and the list itself.
419 * @param list to free */ 419 * @param list to free */
420void rc_strlist_free (char **list); 420void rc_strlist_free (char **list);
421 421
422/*! @name Memory Allocation
423 * Ensure that if we cannot allocate the memory then we exit */
424/*@{*/
425
426/*! Allocate a block of memory
427 * @param size of memory to allocate
428 * @return pointer to memory */
429void *rc_xmalloc (size_t size);
430
431/*! Re-size a block of memory
432 * @param ptr to the block of memory to re-size
433 * @param size memory should be
434 * @return pointer to memory block */
435void *rc_xrealloc (void *ptr, size_t size);
436
437/*! Duplicate a NULL terminated string
438 * @param str to duplicate
439 * @return pointer to the new string */
440char *rc_xstrdup (const char *str);
441/*@}*/
442
443/*! @name Utility 422/*! @name Utility
444 * Although not RC specific functions, they are used by the supporting 423 * Although not RC specific functions, they are used by the supporting
445 * applications */ 424 * applications */
446 425
447/*! Concatenate paths adding '/' if needed. The resultant pointer should be 426/*! Concatenate paths adding '/' if needed. The resultant pointer should be

Legend:
Removed from v.2995  
changed lines
  Added in v.2996

  ViewVC Help
Powered by ViewVC 1.1.20