summaryrefslogtreecommitdiff
path: root/support/gnome-argp.h
blob: 3a0c725004b3d9a0e350b0254f73d49409bbea66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Gnome-specific code to help with argp integration.
   Written by Tom Tromey <tromey@cygnus.com>.  */

#ifndef __GNOME_ARGP_H__
#define __GNOME_ARGP_H__

#ifndef HAVE_STRNDUP
/* Like strdup, but only copy N chars.  */
extern char *strndup (const char *s, size_t n);
#endif

#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
extern char *program_invocation_short_name;
#endif

#ifndef HAVE_PROGRAM_INVOCATION_NAME
extern char *program_invocation_name;
#endif

#define __mempcpy(To,From,Len) (memcpy ((To), (From), (Len)) + (Len))

#endif /* __GNOME_ARGP_H__ */