]> granicus.if.org Git - postgresql/blob - src/backend/utils/adt/version.c
OK, folks, here is the pgindent output.
[postgresql] / src / backend / utils / adt / version.c
1 /*-------------------------------------------------------------------------
2  *
3  * version.c--
4  *       Returns the version string
5  *
6  * IDENTIFICATION
7  *
8  * $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.2 1998/09/01 04:32:55 momjian Exp $
9  *
10  *-------------------------------------------------------------------------
11  */
12
13 #include "postgres.h"
14 #include "version.h"
15
16
17 text       *version(void);
18
19 text *
20 version(void)
21 {
22         int                     n = strlen(PG_VERSION_STR) + VARHDRSZ;
23         text       *ret = (text *) palloc(n);
24
25         VARSIZE(ret) = n;
26         strcpy(VARDATA(ret), PG_VERSION_STR);
27
28         return ret;
29 }