Annotation of src/usr.bin/top/version.c, Revision 1.1
1.1 ! downsj 1: /* $OpenBSD$ */
! 2:
! 3: /*
! 4: * Top users/processes display for Unix
! 5: * Version 3
! 6: *
! 7: * This program may be freely redistributed,
! 8: * but this entire comment MUST remain intact.
! 9: *
! 10: * Copyright (c) 1984, 1989, William LeFebvre, Rice University
! 11: * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
! 12: */
! 13:
! 14: #include "top.h"
! 15: #include "patchlevel.h"
! 16:
! 17: static char version[16];
! 18:
! 19: char *version_string()
! 20:
! 21: {
! 22: snprintf(version, sizeof(version), "%d.%d", VERSION, PATCHLEVEL);
! 23: #ifdef BETA
! 24: strcat(version, BETA);
! 25: #endif
! 26: return(version);
! 27: }