/* gnomesupport.h */
/* This is a generated file.  Please modify `gnomesupport.awk' */

#ifndef GNOMESUPPORT_H
#define GNOMESUPPORT_H

#include <stddef.h>		/* for size_t */
#include <stdarg.h>
#include <sys/types.h>
#include <dirent.h>
#define NAMLEN(dirent) strlen((dirent)->d_name)

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/* Return a malloc'd copy of at most N bytes of STRING.  The
   resultant string is terminated even if no null terminator
   appears before STRING[N].  */
char * strndup (const char */*s*/, size_t /*n*/);

/* Find the length of STRING, but scan at most MAXLEN
   characters.  If no '\0' terminator is found in that many
   characters, return MAXLEN.  */
size_t strnlen (const char */*string*/, size_t /*maxlen*/);

/* Divide S into tokens separated by characters in DELIM.
   Information passed between calls are stored in SAVE_PTR.  */
char * strtok_r (char */*s*/, const char */*delim*/,
                 char **/*save_ptr*/);

/* Write formatted output to a string dynamically allocated with
   `malloc'.  Store the address of the string in *PTR.  */
int vasprintf (char **/*ptr*/, const char */*format*/,
               va_list /*args*/);
int asprintf (char **/*ptr*/, const char */*format*/, ...);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* GNOMESUPPORT_H */
