Ignore:
Timestamp:
May 2, 2008, 11:30:37 AM (17 years ago)
Author:
jack
Message:

added xstrdup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anugavis/src/xmalloc.h

    r5261 r5266  
    22#define XMALLOC_H
    33
    4 /* Attempt a malloc. If it fails, set an error message and return NULL.
     4/* For a given func, xfunc behaves like func but sets an error message
     5 * using AnugaVis_SetError().
    56 */
    6 extern void *xmalloc(size_t size, const char *func);
     7extern void *xmalloc(size_t size, const char *message);
     8extern char *xstrdup(const char *s, const char *message);
    79
    810#endif
Note: See TracChangeset for help on using the changeset viewer.